Replies: 1 comment 1 reply
-
I set enableEvents to false in the corresponding LineSeries and that prevented the tooltip to be shown automatically. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to synchronize XYChart tooltips with tooltips in a 3rd party map component: when hovering the mouse over the chart, a tooltip in the corresponding position of the map should be displayed, and viceversa.
My idea is to use some external state (redux), dispatch an action on hover (from both the chart and the map) with the corresponding data point information (timestamp), and then to render the tooltips in both the chart and the map according to this shared state.
I see that I can use the XYChart onPointerMove prop to get the hovered timestamp, but how can I decouple the rendering of the XYChart Tooltip from the mouse events and instead do it based on the shared state?
Beta Was this translation helpful? Give feedback.
All reactions