Reputation: 4977
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?
Upvotes: 1
Views: 734
Reputation: 3055
Very easy. Just set the series type and call refresh.
var chart = $("#chart").data("kendoChart");
chart.options.series[0].type = "line";
chart.refresh();
Upvotes: 2