Skip to content

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

Open
@Amiryy

Description

@Amiryy

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/[email protected]/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions