Home Forums StockChart Support Chart Support

Chart Support

Viewing 2 posts - 1 through 2 (of 2 total)
  • #42120

    We are using stockchart for react and our customer would like to disable the horizontal scroll on chart for better UX on mobile. Could you please help me to disable horizontal scroll?

    Thank you.



    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 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.