Hi,
I'm having some trouble getting the donut chart to work with multiple series when binding from remote data. Here's my code:
$(
"#projectTimeBreakdownDonutChart"
).kendoChart({
title: {
text:
"Time by Team"
,
position:
"bottom"
},
legend: {
visible:
false
},
seriesDefaults: {
type:
"donut"
,
overlay: {
gradient:
"none"
},
labels: {
visible:
false
}
},
series: [{
field:
"data"
,
categoryField:
"name"
}]
});
And here's the json I'm getting back from my controller
[{
"name"
:
"Duration"
,
"data"
:[{
"category"
:
"Team 1"
,
"value"
:5000
},{
"category"
:
"Team 2"
,
"value"
:130
},{
"category"
:
"Team 3"
,
"value"
:3
},{
"category"
:
"Team 4"
,
"value"
:8
}]
}, {
"name"
:
"Amount"
,
"data"
:[{
"category"
:
"Team 1"
,
"value"
:72000
},{
"category"
:
"Team 2"
,
"value"
:18000
},{
"category"
:
"Team 3"
,
"value"
:300
},{
"category"
:
"Team 4"
,
"value"
:670
}]
}]
Thanks