Remove Series from Line Chart

Hi Support team,

How can I remove the series from the line chart?

Thanks
Yun Zhang

Hi,

currently chart doesn’t provide such a functionality.

If the ability to delete a series is necessary, please explain how you plan to use it in your application, as the series doesn’t get any id.

Hi Alexandra,
I am also looking the solution for this problem in one of my project.

I am attaching one line-chart image file. it is having 5 lines(series) in the same chart. and on one particular check box click event, i want to remove any specific series from the chart. also sample xml file is below.

1 3 2 5 15 1-NOV 5 6 4 9 8 2-NOV 9 4 6 8 5 3-NOV 8 2 5 6 4 4-NOV 4 6 4 11 8 5-NOV 15 16 8 1 18 5-NOV 8 12 14 1 20 7-NOV

i think the image didn’t get attached so attaching again.


Hi,

there is not a method to remove a certain series. You need to rebuilt the whole chart.

chart.destructor();
chart = new dhtmlXChart({

});