CategoryAxis.labels
configurationConfigures the axis labels.
categoryAxis.labels
ObjectThe background color of the labels. Any valid CSS color string will work here, including hex and rgb.
The border of the labels.
The text color of the labels. Any valid CSS color string will work here, including hex and rgb.
Culture to use for formatting the dates. See Globalization for more information. It defaults to the global culture.
categoryAxis.labels.font
StringThe font style of the labels.
Default: "12px Arial,Helvetica,sans-serif"
The format of the labels.
categoryAxis.labels.margin
Number | ObjectThe margin of the labels.
Default: 0
categoryAxis.labels.mirror
BooleanMirrors the axis labels and ticks. If the labels are normally on the left side of the axis, mirroring the axis will render them to the right.
categoryAxis.labels.padding
Number | ObjectThe padding of the labels.
Default: 0
The rotation angle of the labels.
Default: 0
categoryAxis.labels.skip
NumberNumber of labels to skip. Skips rendering the first n labels.
Default: 1
categoryAxis.labels.step
NumberLabel rendering step. Every n-th label is rendered where n is the step
Default: 1
categoryAxis.labels.template
String | FunctionThe template which renders the labels.
The fields which can be used in the template are:
- value - the category value
- dataItem - the data item for the category
- format - the default format of the label
- culture - the default culture (if set) on the label
- index - the 0-based index of the current label
- count - the total number of labels on the axis
categoryAxis.labels.visible
BooleanThe visibility of the labels.
Default: true