SpreadJS Documentation
legend Method
GC.Spread.Sheets.Charts Namespace > Chart type : legend Method
The legend of the chart.
Gets or sets the legend of the chart.
Syntax
var instance = new GC.Spread.Sheets.Charts.Chart(sheet, name, chartType, x, y, width, height, dataRange, dataOrientation);
var returnValue; // Type: any
returnValue = instance.legend(value);
function legend( 
   value : Object
) : any;

Parameters

value
The legend of the chart.
Remarks

The following table lists all the other parameters that can be used while getting or setting the legend of the chart.

Parameter Type Description
value.position - The position of the chart legend.
value.visible boolean The visibility of the chart legend.

See Also

Reference

Chart type