SpreadJS 13
GC.Spread.Sheets.Charts Namespace / ChartCollection type / preserveUnsupportedChart Method
indicates whether preserve unsupport chart when import, the default value is false, if set true, it will be painted as paintCallBack.
the display content function for unsupport chart.
In This Topic
    preserveUnsupportedChart Method
    In This Topic
    Gets or sets if preserve unsupport chart when import.
    Syntax
    var instance = new GC.Spread.Sheets.Charts.ChartCollection(sheet);
    var value; // Type: boolean
    value = instance.preserveUnsupportedChart(flag, paintCallBack);
    function preserveUnsupportedChart( 
       flag : boolean,
       paintCallBack : Function
    ) : boolean;

    Parameters

    flag
    indicates whether preserve unsupport chart when import, the default value is false, if set true, it will be painted as paintCallBack.
    paintCallBack
    the display content function for unsupport chart.

    Return Value

    If no value is set, return the flag value, otherwise, return undefined;
    Example
    sheet.charts.preserveUnsupportedChart(true, function(chartHost, chart){
    var paintElement= document.createElement('div');
    paintElement.innerHTML = 'to be continue';
    chartHost.appendChild(paintElement);
    })
    See Also