What part of the string the given position is anchored to. Can be one of "left"
, "center"
or "right"
. The exact position also depends on the labels.x
setting.
For horizontal axes, the allowed degrees of label rotation to prevent overlapping labels. If there is enough space, labels are not rotated. As the chart gets narrower, it will start rotating the labels -45 degrees, then remove every second label and try again with rotations 0 and -45 etc. Set it to false
to disable rotation, which will cause the labels to word-wrap if possible.
Enable or disable the axis labels.
A format string for the axis label.
Callback JavaScript function to format the label. The value is given by this.value
. Additional properties for this
are. axis
, chart
, isFirst
and isLast
. The value of the default label formatter can be retrieved by calling this.axis.defaultLabelFormatter.call(this)
within the function.. .
Defaults to: .
function() {. return this.value;. }
Rotation of the labels in degrees.
CSS styles for the label. Use whiteSpace: 'nowrap'
to prevent wrapping of category labels. Use textOverflow: 'none'
to prevent ellipsis (dots).. .
In styled mode, the labels are styled with the .highcharts-axis-labels
class.
Whether to use HTML to render the labels.
The x position offset of the label relative to the tick position on the axis.
The y position offset of the label relative to the tick position on the axis.
The Z index for the axis labels.