With the use of the tooltip formatter function, I can display numerous marklines when the user hovers over them. I set the state that has to be updated to display the marklines in this function, and it works fine. However, when I zoom in, since the status is set when I hover on the chart, it continuously redraws and becomes invisible when I move my pointer.
I have tried setting the options using getEchartsInstance().setOptions()
but i got errors saying 'Instance has been disposed, cannot find a connection'
If i am not using state then the markLine data will not get updated.
Another way I thought of was to use the same event handler that is used to show axisPointer
, but i couldn't find any such function.
Thank you in advance.