AxisDefaults
configurationThe default options for all chart axes. Accepts the options supported by categoryAxis, valueAxis, xAxis and yAxis.
axisDefaults
ObjectaxisDefaults.background
StringThe background color of the axis.
axisDefaults.color
StringThe color to apply to all axis elements. Accepts a valid CSS color string, including hex and rgb.
axisDefaults.crosshair
ObjectThe crosshair configuration options.
The crosshair is displayed when the axisDefaults.crosshair.visible option is set to
true.
axisDefaults.labels
ObjectThe axis labels configuration.
axisDefaults.line
ObjectThe configuration of the axis lines. Also affects the major and minor ticks, but not the grid lines.
The configuration of the major grid lines. These are the lines that are an extension of the major ticks through the body of the chart.
axisDefaults.majorTicks
ObjectThe configuration of the axis major ticks.
The configuration of the minor grid lines. These are the lines that are an extension of the minor ticks through the body of the chart.
axisDefaults.minorTicks
ObjectThe configuration of the axis minor ticks.
axisDefaults.narrowRange
BooleanIf set to true the chart will prevent the axis range from snapping to 0.
Setting it to false will force the axis range to snap to 0.
Default: false
axisDefaults.pane
StringThe name of the pane that the axis should be rendered in. The axis will be rendered in the first (default) pane if not set.
The plot bands of the axis.
axisDefaults.reverse
BooleanIf set to true the axis direction will be reversed. By default categories are listed from left to right and from bottom to top.
Default: false
axisDefaults.startAngle
NumberThe angle (degrees) of the first category on the axis.
Angles increase clockwise and zero is to the left. Negative values are acceptable.
Default: 90
axisDefaults.title
ObjectThe title configuration of the axis.
The axisDefaults.title.text option must be set in order to display the title.
axisDefaults.visible
BooleanIf set to true the chart will display the axis. By default the axis is visible.
Default: true