How to avoid a drawn shape from disappearing when hovering over a datapoint which loads a tooltip? #10180
-
How to avoid a drawn shape from disappearing when hovering over a datapoint which loads a tooltip? I struggle with something as it counteracts with my plugin. I have a plugin that draws a simple shape onclick. Something like below. This works fine when I click anywhere on the chart. But once I hover on top of a datapoint the tooltip appears and the chart redraws. At that moment the shape disappears. Is there a way to keep the shape active on the canvas while hover on a tooltip?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
there are rendering steps done after the event happend. So if you want the shape to stay on the canvas you will need to use something like |
Beta Was this translation helpful? Give feedback.
there are rendering steps done after the event happend. So if you want the shape to stay on the canvas you will need to use something like
afterDraw
callback to draw the shape. You can use theafterEvent
to set a variable which you later check if it has to draw something