You must be logged in to post your query.
Home › Forums › StockChart Support › Disable Panning on StockChart
Is there a way to disable panning on a stock chart?
@arjungoel10gmail-com,
Sorry, it’s not possible to disable panning in the stock chart as of now.
—- Manoj Mohan Team CanvasJS
[Update] @arjungoel10gmail-com,
You can disable panning in individual charts of StockChart by setting panEnabled property to false, soon after rendering StockChart & within the rangeChanged event-handler. This is not an official API & hence might get changed in future. Please find the code-snippet below.
stockChart.charts[0].panEnabled = false;
Please take a look at this JSFiddle for a working example.
— Vishwas R Team CanvasJS
You must be logged in to reply to this topic. Login/Register