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 )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With