What part of the string the given position is anchored to.
What part of the string the given position is anchored to. If left
, the left side of the string is at the axis position. Can be one of "left"
, "center"
or "right"
. Defaults to an intelligent guess based on which side of the chart the axis is on and the rotation of the label.
For horizontal axes, the allowed degrees of label rotation to prevent overlapping labels.
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.
2.1.0
Enable or disable the axis labels.
Enable or disable the axis labels.
A format string for the axis label.
A format string for the axis label.
3.0
Callback JavaScript function to format the 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; }
Horizontal axis only.
Horizontal axis only. When staggerLines
is not set, maxStaggerLines
defines how many lines the axis is allowed to add to automatically avoid overlapping X labels. Set to 1
to disable overlap detection.
1.3.3
How to handle overflowing labels on horizontal axis.
How to handle overflowing labels on horizontal axis. Can be undefined, false
or "justify"
. By default it aligns inside the chart area. If "justify", labels will not render outside the plot area. If false
, it will not be aligned at all. If there is room to move it, it will be aligned to the edge, else it will be removed.
1.1.6
Rotation of the labels in degrees.
Horizontal axes only.
Horizontal axes only. The number of lines to spread the labels over to make room or tighter labels. .
To show only every n'th label on the axis, set the step to n.
To show only every n'th label on the axis, set the step to n. Setting the step to 2 shows every other label.
CSS styles for the label.
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.
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 y position offset of the label relative to the tick position on the axis. The default makes it adapt to the font size on bottom axis.
The Z index for the axis labels.
JavaScript name:
xAxis-labels