0
我的条形图在窗口内。当窗口打开时,图表已创建,但可缩放和可平移选项不起作用?任何想法为什么?我的数据源链接到一个对象数组变量。Kendo UI条形图 - 平移和缩放不起作用?
$("#chart").kendoChart({
pannable: {
lock: "y"
},
zoomable: {
mousewheel: {
lock: "y"
},
selection: {
lock: "y"
}
},
dataSource: dsSales,
title: {
text: "Sales Analysis"
},
legend: {
position: "top",
visible: true
},
tooltip: {
visible: true,
template: "#= series.name # : #= value # (#= dataItem.month #)"
},
seriesDefaults: {
type: pcChartType
},
series: [
{field:"OrderQty", name:"Order Qty", colorField:"useColorQty"},
{field:"OrderValue", name:"Order Value", colorField:"useColorValue"},
],
categoryAxis: {
field:"month",
majorGridLines: {
visible: true
}
},
valueAxis: {
minorGridLines: {
visible: true
}
},
dataBound: function(e){
}
}).data("kendoChart");