vertical line with current series y-values on mouse posiiton
Posted: Wed Dec 06, 2017 8:22 am
Hi,
my current task is to replace the chart control in our application with the LightingChart, because of performance reasons.
By the implementation of a function, I would need a piece of advice from you.
If the mouse cursor is in the view, a vertical line should appear. The line position should be equivalent to the mouse cursor position.
The nearest series points (refered to the x-axis) should be displayed in a box near to the vertical line.
When the mouse cursor leaves the view the line should disappear.
My first thought was to use a LineSeriesCursor and set the LineSeriesCursor position manually to the current mouse cursor position. For the box I would use an annotation.
To hide the line and the info-box I would use the MouseLeave-event from the lightingchart itself, but I dont know if I can rely on this event. Will it be triggered reliable?
Do you have an another advice for a simpler solution?
thank you very much
Igor
my current task is to replace the chart control in our application with the LightingChart, because of performance reasons.
By the implementation of a function, I would need a piece of advice from you.
If the mouse cursor is in the view, a vertical line should appear. The line position should be equivalent to the mouse cursor position.
The nearest series points (refered to the x-axis) should be displayed in a box near to the vertical line.
When the mouse cursor leaves the view the line should disappear.
My first thought was to use a LineSeriesCursor and set the LineSeriesCursor position manually to the current mouse cursor position. For the box I would use an annotation.
To hide the line and the info-box I would use the MouseLeave-event from the lightingchart itself, but I dont know if I can rely on this event. Will it be triggered reliable?
Do you have an another advice for a simpler solution?
thank you very much
Igor