2
我在我的应用程序中有剑道图和树视图。我想在复选框选中事件时动态更改数值轴,示例当我们在树视图中选中“KM”复选框时那么Km的数值轴和数据将显示在图表中。我的剑道图并未更新
所以我尝试了一些代码,然后我的图表不显示。 我检查事件代码是
$("#treeview").on("change", function (e) {
var chart = $("#chart").data("kendoChart");
var checkedSeries = [];
$("#treeview").find(":checked").each(function() {
var nodeText = $(this).parent().parent().text();
$.each(valueAxes, function(index, valueAxes) {
if (valueAxes.field == nodeText) {
checkedSeries.push(valueAxes);
}
});
});
chart.options.valueAxes = checkedSeries;
chart.refresh();
});
什么是错在我的代码,请帮助我。 这是我的jsbin http://jsbin.com/eyibar/11/edit
你好,我试图显示一个图表,但价值轴没有改变点击事件这里是jsbin http://jsbin.com/eyibar/12/edit – deeksha 2013-03-28 05:02:08