Question

I've got a requirement to initially show the data in a line chart and have a toggle button that will toggle between a line chart and a bar chart for the data. Is this possible using javascript without going back to the server?

Was it helpful?

Solution

Very easy. Just set the series type and call refresh.

var chart = $("#chart").data("kendoChart");
chart.options.series[0].type = "line";
chart.refresh();

http://jsbin.com/oYUs/2/edit

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top