SpreadJS Documentation
GC.Spread.Sheets.Charts Namespace / Chart type / title Method
The title of the chart.
The text of the chart title.
The font family of the chart title.
The font size of the chart title, its unit is pixel.
The color of the chart title.
The transparency of the chart title color
In This Topic
    title Method
    In This Topic
    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,
                                 value.text,
                                 value.fontFamily,
                                 value.fontSize,
                                 value.color,
                                 value.transparency);
    function title( 
       value : Object,
       value.text : string,
       value.fontFamily : string,
       value.fontSize : number,
       value.color : string,
       value.transparency : number
    ) : any;

    Parameters

    value
    The title of the chart.
    value.text
    The text of the chart title.
    value.fontFamily
    The font family of the chart title.
    value.fontSize
    The font size of the chart title, its unit is pixel.
    value.color
    The color of the chart title.
    value.transparency
    The transparency of the chart title color

    Return Value

    If no value is set, returns the title of the chart; otherwise, returns 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