You must be logged in to post your query.
Home › Forums › StockChart Support › Chart Support
Tagged: horizontal scroll
Hi, 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.
@junjun,
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