How to remove series on charts?

I add some Series as following

chart1Line[i] = { value : “#ALL_”+e+“tp#",line :{color :colors[i],width:1}};
chart2Line[i] = { value : "#ALL
”+e+“_res#”,line :{color :colors[i],width:1}};

for(var i=0;i<chart1Line.length;i++){
barChart1.addSeries(chart1Line[i]);
barChart2.addSeries(chart2Line[i]);
}

but how to remove those series what I added.

barChart1.clearAll();
barChart2.clearAll();
it can’t take effect, it just clear the data but not the node value and line…

Hi,

you need to completely recreate chart to change series:

barChart1.desctructor();

var barChart1 = new dhtmlXChart({

});