Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要首先在折线图中显示数据,并有一个切换按钮,可以在折线图和条形图之间切换数据。这可以使用javascript而不返回服务器吗?
很容易。只需设置系列类型并调用刷新。
var chart = $("#chart").data("kendoChart"); chart.options.series[0].type = "line"; chart.refresh();
http://jsbin.com/oYUs/2/edit