This is an example of the issue I'm having: http://jsfiddle.net/zdanev/dRH5y/7
I'm trying to sort the bars of a kendo chart after they are grouped. I want to sort them by a third field (not the category or the group). In the example above, when I click on Sort by Score I want the second group of bars to be sorted descending (sort by CustomOrder field).
What am I missing? Thanks
var group = "Student";
var category = "Test";
var sort = "Student";
function updateChart() {
var chart = $("#chart").data("kendoChart");
chart.dataSource.group([{ field: group }]);
chart.dataSource.sort([{ field: sort }]);
chart.options.categoryAxis.field = category;
chart.options.title = "group by " + group + ", sort by " + sort;
chart.refresh();
}