How to add a MouseDragEvent listener when drag on the Axis X?

79 views Asked by At

I am trying to add a MouseDragStart listener when drag on axis x, but I can not find related API in lightning API document, can anyone suggest me which API should I use? chart

1

There are 1 answers

3
Snekw On BEST ANSWER

There is no API to attach an event to MouseDragStart on the axis.

If it's enough for you to know when the axis scale has changed, then you can attach a listener to the onScaleChange event. This event is fired when the start or end value of the axis changes.