I have a chart where the labels contain two parts, a name an a number.
I want the number to appear below the name, illustrated by the <br/>
tag:
I load the contents of the chart, and set the label in my controller:
When i try to use a template on the label, the text after the line break appears at the bottom of the chart along with the rest of the text of the chart:
javascript code:
$("#chart1").kendoChart({
theme: "BlueOpal",
title: { text: "My reported hours" },
legend: { position: "bottom" },
seriesDefaults: { type: "column" },
dataSource: {
transport: {
read: {
url: dataUrl,
dataType: "json"
}
}
},
series: [{ field: "SeriesField" }],
categoryAxis: {
field: "CategoryAxis",
labels: {
rotation: 0,
template: "#=value#<br/>newline"
},
},
valueAxis: {
labels: { format: "{0}h" },
min: 0
},
tooltip: {
visible: true,
template: "#= formatDecimal(value) #<br/> newline"
},
seriesClick: onSeriesClick
});
How do i make the line break work?