series.labels.ariaTemplate String | Function
The template which renders the ARIA label for the series labels.
The fields which can be used in the template are:
- category - the category name. Available for area, bar, column, bubble, donut, line and pie series.
- dataItem - the original data item used to construct the point. Will be null if binding to array.
- percentage - the point value represented as a percentage value. Available only for 100% stacked charts.
- series - the data series
- value - the point value. Can be a number or object containing each bound field.
Example
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "area",
name: "Series 1",
data: [200, 450, 300, 125],
labels: {
template: "#= value #%",
ariaTemplate: "The value for #= series.name # in #= category # is #= value #",
visible: true
}
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
}
});