Search code examples
javascriptchartslightninglightningchart

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


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


Solution

  • 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.