0
Under review

Highlight a lineseries when mouse passes over

xelk88 3 years ago • updated 3 years ago 2
Hi!

I was wondering how to highlight a lineseries when moues hovers over. I was trying to use events on the lineseries but I noticed that mousemove is only triggered after a mousedown event. What would be the best way to do this?

Many thanks in advance!
Under review
I think you need to implement a custom "plot controller" to do this. The standard behavior does not support hover (I suspect it will be add significant cpu load when implemented in the portable library...)
Thanks for the reply ! What i did was i subscribed to the mouse move event from the plot. In that event i am constantly looking for lineseries in a similar way the the tracker does and when it finds one it will highlight that one. It works although it is a little bit slow specially when there is a lot of lineseries in the plot.