AxisDefaults
The configuration options of the axis.
background?
string
The background color of the axis.
color?
string
The color to apply to all axis elements. Accepts a valid CSS color string, including hex and rgb.
crosshair?
The crosshair configuration options.
The crosshair is displayed when the axisDefaults.crosshair.visible
option is set to true
.
labels?
The configuration of the axis labels.
line?
The configuration of the axis lines. Also affects the major and minor ticks, but not the grid lines.
majorGridLines?
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.
majorTicks?
The configuration of the axis major ticks.
minorGridLines?
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.
minorTicks?
The configuration of the axis minor ticks.
narrowRange?
boolean
If set to true
, the Chart prevents the axis range from snapping to zero.
Setting it to false
, forces the axis range to snap to zero.
pane?
string
The name of the pane in which the axis has to be rendered. If not set, the axis will be rendered in the first (default) pane.
plotBands?
PlotBand[]
The plot bands of the axis.
reverse?
boolean
If set to true
, the axis direction is reversed. By default, categories are listed from left to
right and from bottom to top.
startAngle?
number
The angle (degrees) of the first category on the axis. Angles increase clockwise with zero to the left. Negative values are acceptable.
title?
The title configuration of the axis.
To display the title, set the axisDefaults.title.text
option.
visible?
boolean
If set to true
, the Chart displays the axis. By default, the axis is visible.