remove([Boolean updateChart = true])

Removes specified dataSeries from data Array.

Parameters:
        updateChart: When true, updates the chart automatically after removing dataseries. Defaults to true.

Example:
        chart.data[1].remove();
Note:
  • Chart should be rendered before you can use this method.
var  chart = new  CanvasJS.Chart("container",
{
     .
     .
     .
});
chart.render();

chart.data[0].remove();
Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question