I have pie chart and I want when I click on the button it would show bar chart. Is it possible to do?
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/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.