SpreadJS Documentation
title Method
GC.Spread.Sheets.Charts Namespace > Chart type : title Method
The title of the chart.
Gets or sets the title 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.title(value);
function title( 
   value : Object
) : any;

Parameters

value
The title of the chart.
Remarks

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

Parameter Type Description
value.text string The text of the chart title.
value.fontFamily string The font family of the chart title.
value.fontSize number The font size of the chart title (in pixel). 
value.color string The color of the chart title.
value.primaryCategory.title object The title of the primary category axis.
value.primaryCategory.title.text string The title text of the primary category axis.
value.primaryCategory.title.color string The title color of the primary category axis.
value.primaryCategory.title.transparency number The transparency of the primary category axis color.
value.primaryCategory.title.fontFamily string The title font family of the primary category axis.
value.primaryCategory.title.fontSize number The title font size (in pixel) of the primary category axis.


See Also

Reference

Chart type