valueAxis.labels Object
Configures the axis labels.
valueAxis.labels.background String
The background color of the labels. Any valid CSS color string will work here, including hex and rgb
valueAxis.labels.border Object
The border of the labels.
valueAxis.labels.border.color String
(default: "black")
The color of the border. Any valid CSS color string will work here, including hex and rgb.
valueAxis.labels.border.dashType String
(default: "solid")
The dash type of the border.
"solid"
Specifies a solid line.
"dot"
Specifies a line consisting of dots.
"dash"
Specifies a line consisting of dashes.
"longDash"
Specifies a line consisting of a repeating pattern of long-dash.
"dashDot"
Specifies a line consisting of a repeating pattern of dash-dot.
"longDashDot"
Specifies a line consisting of a repeating pattern of long-dash-dot.
"longDashDotDot"
Specifies a line consisting of a repeating pattern of long-dash-dot-dot.
valueAxis.labels.border.width Number
(default: 0)
The width of the border.
valueAxis.labels.color String
The text color of the labels. Any valid CSS color string will work here, including hex and rgb.
valueAxis.labels.font String
(default: "12px Arial,Helvetica,sans-serif")
The font style of the labels.
valueAxis.labels.format String
The format of the labels.
Example
$("#chart").kendoChart({
valueAxis: {
labels: {
// set the format to currency
format: "C"
}
},
//...
});
valueAxis.labels.margin Number|Object
(default: 0)
The margin of the labels.
Example
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and left margin to 1px
// margin right and bottom are with 0px (by default)
margin: { top: 1, left: 1 }
valueAxis.labels.mirror Boolean
Mirrors 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 | Object
(default: 0)
The padding of the labels.
Example
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
valueAxis.labels.rotation Number
(default: 0)
The rotation angle of the labels.
valueAxis.labels.skip Number
(default: 1)
Number of labels to skip. Skips rendering the first n labels.
valueAxis.labels.step Number
(default: 1)
Label rendering step. Every n-th label is rendered where n is the step
valueAxis.labels.template String | Function
The label template. Template variables:
- value - the value
Example
<div id="chart"></div>
<script>
// chart initialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
name: "Series 1",
data: [200, 450, 300, 125]
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
},
valueAxis: {
labels: {
// labels template
template: "#= value #%"
}
}
});
</script>
valueAxis.labels.visible Boolean
(default: true)
The visibility of the labels.