Required library edition:
Required library file: dhtmlxchart .js
adds the new data object and redraws a chart
/*item with id = 12*/ chart.remove(12); /*the 6th item in a chart*/ chart.remove(chart.idByIndex(5)); /*the 1st item*/ chart.remove(chart.first());