Once again I find myself at the mercy of another flaky Telerik control, this time it's the chart component and the totally inadequate documentation (as usual).
Imaging this simple configuration (or so I thought!!!)
Why is the months axis in the wrong order despite the order clause?
<div id="chart3"></div>
<script>
var data = [
{ "MonthName": "Jan", "MonthNum": 1, "Status": "Approved", "Value": 1 },
{ "MonthName": "Jan", "MonthNum": 1, "Status": "Completed", "Value": 2 },
{ "MonthName": "Jan", "MonthNum": 1, "Status": "Requested", "Value": 1 },
{ "MonthName": "Feb", "MonthNum": 2, "Status": "Requested", "Value": 1 },
{ "MonthName": "Mar", "MonthNum": 3, "Status": "Booked", "Value": 1 },
{ "MonthName": "Apr", "MonthNum": 4, "Status": "Completed", "Value": 1 },
{ "MonthName": "May", "MonthNum": 5, "Status": "Completed", "Value": 1 },
{ "MonthName": "Jun", "MonthNum": 6, "Status": "Completed", "Value": 1 },
{ "MonthName": "Jul", "MonthNum": 7, "Status": "Approved", "Value": 1 },
{ "MonthName": "Aug", "MonthNum": 8, "Status": "Requested", "Value": 1 },
{ "MonthName": "Sep", "MonthNum": 9, "Status": "Requested", "Value": 1 },
{ "MonthName": "Oct", "MonthNum": 10,"Status": "Approved", "Value": 1 },
{ "MonthName": "Nov", "MonthNum": 11,"Status": "Booked", "Value": 1 },
{ "MonthName": "Dec", "MonthNum": 12,"Status": "Completed", "Value": 1 }
];
$("#chart3").kendoChart({
dataSource: {
data: data,
group: {
field: "Status"
},
sort: {
field: "MonthNum",
dir: "asc"
}
},
series: [{
type: "column",
field: "Value",
categoryField: "MonthNum"
}]
});
</script>