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

outside: true on Tooltip - Error when trying to trigger the tooltip manually #456

Open
Amiryy opened this issue Jan 8, 2020 · 0 comments

Comments

@Amiryy
Copy link

Amiryy commented Jan 8, 2020

Hello,
So what I'm trying to do here is trigger my tooltip manually, not using the mouse to hover over a point. I wanna make the tooltip appear when the user hovers something else on the page (e.g. a table row).

When I am setting outside: true in chartConfig.tooltip, every time I try to trigger the tooltip manually I get:

Error in /turbo_modules/highcharts@6.2.0/highcharts.js (189:336)
Cannot read property 'top' of undefined

Note that when I set outside: true, hovering over a point to trigger the tooltip normally would not cause the error.
I am using the following syntax to trigger the tooltip manually:

point.setState("hover");
chartObject.tooltip.refresh(point);

In this example, I am trying to trigger the tooltip on the first point in the onChartReady callback for the demonstration:
https://stackblitz.com/edit/react-highcharts-bug-example

Thanks

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

No branches or pull requests

1 participant