SpreadJS 13
GC.Spread.Sheets.Charts Namespace / Chart type / chartArea Method
The chart area style of the chart.
The background color of the chart area.
The transparency of the chart area backColor.
The font family of the chart area.
The font size of the chart area, its unit is pixel.
The color of the chart area.
The transparency of the chart area color.
The border of the chart area.
The border color of the chart area.
The border transparency of the chart area.
The border width of the chart area.
The border dash style of the chart area.
In This Topic
    chartArea Method
    In This Topic
    Gets or sets the chart area style 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.chartArea(value,
                                     value.backColor,
                                     value.backColorTransparency,
                                     value.fontFamily,
                                     value.fontSize,
                                     value.color,
                                     value.transparency,
                                     value.border,
                                     value.border.color,
                                     value.border.transparency,
                                     value.border.width,
                                     value.border.dashStyle);
    function chartArea( 
       value : Object,
       value.backColor : string,
       value.backColorTransparency : number,
       value.fontFamily : string,
       value.fontSize : number,
       value.color : string,
       value.transparency : number,
       value.border : Object,
       value.border.color : string,
       value.border.transparency : number,
       value.border.width : number,
       value.border.dashStyle : GC.Spread.Sheets.Charts.LineDashStyle
    ) : any;

    Parameters

    value
    The chart area style of the chart.
    value.backColor
    The background color of the chart area.
    value.backColorTransparency
    The transparency of the chart area backColor.
    value.fontFamily
    The font family of the chart area.
    value.fontSize
    The font size of the chart area, its unit is pixel.
    value.color
    The color of the chart area.
    value.transparency
    The transparency of the chart area color.
    value.border
    The border of the chart area.
    value.border.color
    The border color of the chart area.
    value.border.transparency
    The border transparency of the chart area.
    value.border.width
    The border width of the chart area.
    value.border.dashStyle
    The border dash style of the chart area.

    Return Value

    If no value is set, returns the chart area style 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 chart area style.

    Parameter Type Description
    value.backColor string The background color of the chart area.
    value.fontFamily string The font family of the chart area.
    value.fontSize number The font size of the chart area (in pixel).
    value.color string The color of the chart area.


    See Also

    Reference

    Chart type