SpreadJS Documentation
remove Method
GC.Spread.Sheets.Charts Namespace > ChartCollection type : remove Method
The name of the chart.
Removes a chart from the sheet by the indicate name.
Syntax
var instance = new GC.Spread.Sheets.Charts.ChartCollection(sheet);
var value; // Type: any
value = instance.remove(name);
function remove( 
   name : string
) : any;

Parameters

name
The name of the chart.
Example
var dataRange = "A1:D4";
activeSheet.charts.add('Chart1', GC.Spread.Sheets.Charts.ChartType.columnClustered, 250, 20, 600, 400, dataRange);
//button
$("#button1").click(function () {
     activeSheet.resumePaint();
     activeSheet.charts.remove("f2");
     activeSheet.repaint();
});
See Also

Reference

ChartCollection type