ValueAxis.labels
configurationThe axis labels configuration.
valueAxis.labels
ObjectThe background color of the labels. Accepts a valid CSS color string, including hex and rgb.
valueAxis.labels.border
ObjectThe border of the labels.
valueAxis.labels.color
StringThe text color of the labels. Accepts a valid CSS color string, including hex and rgb.
valueAxis.labels.font
StringThe font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".
Default: "12px Arial,Helvetica,sans-serif"
valueAxis.labels.format
StringThe format used to display the labels. Uses kendo.format. Contains one placeholder ("{0}") which represents the category value.
Default: "{0}"
valueAxis.labels.margin
Number|ObjectThe margin of the labels. A numeric value will set all margins.
Default: 0
valueAxis.labels.mirror
BooleanIf set to true the chart will mirror 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.
valueAxis.labels.padding
Number|ObjectThe padding of the labels. A numeric value will set all margins.
Default: 0
The position of the axis labels. By default, labels are positioned next to the axis.
- When
positionis set toend, the labels are placed at the end of the crossing axis—
typically, at the top or right end of the Chart unless the crossing axis was reversed.
- When
positionis set tostart, the labels are placed at the start of the crossing axis—
typically, at the left or bottom end of the Chart unless the crossing axis was reversed.
Default: "onAxis"
valueAxis.labels.rotation
Number|String|ObjectThe rotation angle (in degrees) of the labels. By default the labels are not rotated. Angles increase clockwise and zero is to the left. Negative values are acceptable. Can be set to "auto" if the axis is horizontal in which case the labels will be rotated only if the slot size is not sufficient for the entire labels.
Default: 0
valueAxis.labels.skip
NumberThe number of labels to skip. By default no labels are skipped.
Default: 0
valueAxis.labels.step
NumberLabel rendering step. Every n-th label is rendered where n is the step
Default: 1
valueAxis.labels.template
String|FunctionThe template which renders the labels.
The fields which can be used in the template are:
- value - the value value
The text can be split into multiple lines by using line feed characters ("\n").
valueAxis.labels.visible
BooleanIf set to true the chart will display the value axis labels. By default the category axis labels are visible.
Default: true
valueAxis.labels.visual
FunctionA function that can be used to create a custom visual for the labels. The available argument fields are:
- createVisual - a function that can be used to get the default visual.
- culture - the default culture (if set) on the label
- format - the default format of the label
- options - the label options.
- rect - the
kendo.geometry.Rectthat defines where the visual should be rendered. - sender - the chart instance (may be undefined).
- text - the label text.
- value - the category value