Home Forums Chart Support Remove a data point

Remove a data point

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

    I understand how to add a point to a chart but can I remove one so the chart scrolls right to left?

    Thanks

    Kurt

    #43131

    @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

    #43135

    Thanks Thangaraj. I really appreciate the help.

    Kurt

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

You must be logged in to reply to this topic.