我正在使用 KendoUI 版本 2013.2.716,但我遇到了一个问题,每当切换系列图例时,显示的线条就会混乱。在切换为不显示一条线后,无法返回到显示所有线的状态。如果有已知的解决方案,将不胜感激。我的行代码没什么特别的,但无论如何都是这样:
function createLine(data, leaf) {
var entity = leaf ? "#graphLeaf" : "#graph";
$(entity).kendoChart({
dataSource: {
data: data
},
title: {
text: "Stats"
},
legend: {
position: "bottom"
},
seriesDefaults: {
type: "line",
missingValues: "gap"
},
series:
[{
field: "CountOne",
name: "Count One"
}, {
field: "CountTwo",
name: "Count Two"
}],
categoryAxis: {
field: "DateNum",
labels: {
template: "#= convertDateNum(value) #"
},
minorUnit: 1
},
valueAxis: {
min: 0,
labels: {
format: "{0:n0}"
},
},
tooltip: {
visible: true,
format: "{0:n0}"
},
chartArea: {
background: 'transparent'
}
});