Home Forums StockChart Support Disable Panning on StockChart

Disable Panning on StockChart

Viewing 3 posts - 1 through 3 (of 3 total)
  • #41950

    Is there a way to disable panning on a stock chart?



    Sorry, it’s not possible to disable panning in the stock chart as of now.

    Manoj Mohan
    Team CanvasJS




    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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.