SpreadJS 13
GC.Spread.Sheets.Charts Namespace / ChartCollection type / get Method
The name of the chart.
In This Topic
    get Method
    In This Topic
    Gets a chart from the sheet by the indicate name.
    Syntax
    var instance = new GC.Spread.Sheets.Charts.ChartCollection(sheet);
    var value; // Type: Chart
    value = instance.get(name);
    function get( 
       name : string
    ) : Chart;

    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 () {
     var chart = activeSheet.charts.get("f2");
    });
    See Also