Question

I have pie chart and I want when I click on the button it would show bar chart. Is it possible to do?

Was it helpful?

Solution

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/

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