SpreadJS Documentation
zIndex Method
GC.Spread.Sheets.Charts Namespace > ChartCollection type : zIndex Method
The name of the chart.
The z-index of the chart.
Gets or sets the z-index of chart.
Syntax
var instance = new GC.Spread.Sheets.Charts.ChartCollection(sheet);
var value; // Type: any
value = instance.zIndex(name, zIndex);
function zIndex( 
   name : string,
   zIndex : number
) : any;

Parameters

name
The name of the chart.
zIndex
The z-index of the chart.
Example
var dataRange = "A1:D4";
activeSheet.charts.add('Chart1', GC.Spread.Sheets.Charts.ChartType.columnClustered, 250, 20, 600, 180, dataRange);
var dataRange2 = "A20:D24";
activeSheet.charts.add('Chart2', GC.Spread.Sheets.Charts.ChartType.columnClustered, 250, 180, 600, 180, dataRange2);
activeSheet.charts.zIndex('Chart1', 897);
activeSheet.charts.zIndex('Chart2', 890);
See Also

Reference

ChartCollection type