I have pie chart and I want when I click on the button it would show bar chart. Is it possible to do?
Asked
Active
Viewed 2,626 times
1 Answers
7
Yes, it is possible, just do:
// Get reference to your chart
var chart = $("#chart").data("kendoChart");
// Change type for first serie
chart.options.series[0].type = "bar";
// Finally refresh chart
chart.refresh();
See example here : http://jsfiddle.net/OnaBai/UeWbq/

OnaBai
- 40,767
- 6
- 96
- 125