Search code examples

Is it possible to disable zoom in lightningChartJS chart?

In a chart created using LightningChartJS one can zoom in or zoom out of a particular section by dragging the mouse.Is it possible to disable the zoom functionality?


  • ChartXY has several methods for enabling/disabling individual mouse/touch interactions, all of which are named with the prefix: setMouseInteraction...

    Zooming in can be disabled with

    chart.setMouseInteractionRectangleZoom( false )

    Fitting can be disabled with

    chart.setMouseInteractionRectangleFit( false )