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, value.position, value.visible, value.backColor, value.backColorTransparency, value.borderStyle, value.borderStyle.color, value.borderStyle.width, value.borderStyle.transparency, value.color, value.fontFamily, value.fontSize);
function legend( value : Object, value.position : LegendPosition, value.visible : boolean, value.backColor : string, value.backColorTransparency : number, value.borderStyle : Object, value.borderStyle.color : string, value.borderStyle.width : number, value.borderStyle.transparency : number, value.color : string, value.fontFamily : string, value.fontSize : number ) : any;
Parameters
- value
- The legend of the chart.
- value.position
- The position of the chart legend.
- value.visible
- The visibility of the chart legend.
- value.backColor
- The backgroundColor of the chart legend.
- value.backColorTransparency
- The transparency of the chart legend color
- value.borderStyle
- The borderStyle of the chart legend.
- value.borderStyle.color
- The border color of the chart legend.
- value.borderStyle.width
- The border width of the chart legend.
- value.borderStyle.transparency
- The transparency of the chart legend border color
- value.color
- The color of the chart legend text.
- value.fontFamily
- The font family of the chart legend text.
- value.fontSize
- The font size of the chart legend text.
Return Value
If no value is set, returns the legend of the chart; otherwise, returns the chart.