2

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

kmp
  • 10,535
  • 11
  • 75
  • 125
Sergey
  • 7,933
  • 16
  • 49
  • 77

1 Answers1

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