You must be logged in to post your query.
Home › Forums › Chart Support › Remove a data point
Tagged: scroll
I understand how to add a point to a chart but can I remove one so the chart scrolls right to left?
Thanks
Kurt
@ispybadguys,
You can remove a datapoint from the chart by using the array shift() method as shown in the code snippet below:
chart.options.data[0].dataPoints.shift(); chart.render();
Please check this JSFiddle for a working example.
— Thangaraj Raman Team CanvasJS
Thanks Thangaraj. I really appreciate the help.
You must be logged in to reply to this topic. Login/Register