SpreadJS 14
GC.Spread.Sheets Namespace / Worksheet type / charts Field
In This Topic
    charts Field
    In This Topic
    Chart manager for the sheet.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: ChartCollection
    value = instance.charts;
    var charts : ChartCollection;
    Example
    //This example shows how to add a chart.
    var dataRange = "A1:D4";
    var chart = activeSheet.charts.add('Chart1', GC.Spread.Sheets.Charts.ChartType.columnClustered, 250, 20, 600, 400, dataRange);
    See Also

    Reference

    Worksheet type