Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Tool Tip in Area Chart #9

Open
BillwallApp opened this issue Apr 1, 2020 · 1 comment
Open

Custom Tool Tip in Area Chart #9

BillwallApp opened this issue Apr 1, 2020 · 1 comment

Comments

@BillwallApp
Copy link

BillwallApp commented Apr 1, 2020

Hi,
is there any possibility of creating a custom tool tip with any props? I would like to position the tool tip differently to the default setting, especially under, and not over, the cursor.
Thanks in advance for your answer and great work so far!

@nhannah
Copy link
Contributor

nhannah commented Apr 9, 2020

I would fork the repo and switch the order of these two components to achieve that

{!onPress && <Cursor
  ref={this.cursor}
  {...combinedCursorProps}
/>}
{!onPress && <ToolTip
  ref={this.toolTip}
  {...toolTipProps}
/>}

You could then adjust the props as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants