Hi,
I found that when draw a pie chart, there is only one item in data source, and this item's value is 0. It will result with no chart drawing and the percentage will show "NaN". I suppose it's a bug.
var kendoPieDict = {
title: { text: "Pie Chart"},
legend: { position: "right" },
seriesDefaults: {
labels: {
template: "#= category # - #= kendo.format('{0:P}', percentage) #",
position: "outsideEnd",
visible: true,
background: "transparent"
}
},
series: [{
type: "pie",
data: [{category: "category1", value: 0}]
}],
tooltip: {
template: "#= category # - #= kendo.format('{0:P}', percentage) #",
visible: true
}
};
$("#chart").kendoChart(kendoPieDict );
I found that when draw a pie chart, there is only one item in data source, and this item's value is 0. It will result with no chart drawing and the percentage will show "NaN". I suppose it's a bug.
var kendoPieDict = {
title: { text: "Pie Chart"},
legend: { position: "right" },
seriesDefaults: {
labels: {
template: "#= category # - #= kendo.format('{0:P}', percentage) #",
position: "outsideEnd",
visible: true,
background: "transparent"
}
},
series: [{
type: "pie",
data: [{category: "category1", value: 0}]
}],
tooltip: {
template: "#= category # - #= kendo.format('{0:P}', percentage) #",
visible: true
}
};
$("#chart").kendoChart(kendoPieDict );