SpreadJS 13
GC.Spread.Sheets.Charts Namespace / SeriesCollection type / get Method
The index of the series.
In This Topic
    get Method
    In This Topic
    Gets all series or a specified series from series collection.
    Syntax
    var instance = new GC.Spread.Sheets.Charts.SeriesCollection();
    var value; // Type: any
    value = instance.get(index);
    function get( 
       index : number
    ) : any;

    Parameters

    index
    The index of the series.
    Example
    // This example shows how to get a series.
    var dataRange = "A1:D4";
    var chart = activeSheet.charts.add('Chart1', GC.Spread.Sheets.Charts.ChartType.columnClustered, 250, 20, 600, 400, dataRange);
    var series1 = chart.series().get(0);
    See Also