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

Parameters

value
The chart axes of the chart.
Remarks

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

Parameter Type Description
value.primaryCategory object The primary category axis of the chart.
value.primaryValue object The primary value axis of the chart.
value.secondaryCategory object The secondary category axis of the chart.The secondary category axis of the chart.
value.secondaryValue object The secondary value axis of the chart.
value.primaryCategory.visible boolean Indicates if the specified axis should be shown.
value.primaryCategory.tickLabelPosition The tick label position.
value.primaryCategory.lineStyle object The line style of the primary category axis.
value.primaryCategory.lineStyle.color string The line color of the primary category axis.
value.primaryCategory.lineStyle.width number The line width of the primary category axis.
value.primaryCategory.style object The style of the primary category axis.
value.primaryCategory.style.color string The color of the primary category axis.
value.primaryCategory.style.fontFamily string The font family of the primary category axis.
value.primaryCategory.style.fontSize number The font size of the primary category axis, its unit is pixel.
value.primaryCategory.majorTickPosition - The major tick position of the primary category axis.
value.primaryCategory.minorTickPosition - The minor tick position of the primary category axis.
value.primaryCategory.min number The minimum value of the related axis. (for value and date axis only)
value.primaryCategory.max number The maximum value of the related axis. (for value and date axis only)
value.primaryCategory.majorUnit number The major unit of the primary category axis.
value.primaryCategory.minorUnit number The minor unit of the primary category axis.
value.primaryCategory.format string The format of the primary category axis.
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.fontFamily string The title font family of the primary category axis.
value.primaryCategory.title.fontSize number The title font size of the primary category axis, its unit is pixel.
value.primaryCategory.majorGridLine object The major grid line of the primary category axis.
value.primaryCategory.minorGridLine object The minor grid line of the primary category axis.
value.primaryCategory.majorGridLine.color string The color of the major grid line.
value.primaryCategory.majorGridLine.visible boolean The visibility of the major grid line.
value.primaryCategory.majorGridLine.width number The width of the major grid line.

See Also

Reference

Chart type