我有以下实现。它已实现且功能强大。 http://dojo.telerik.com/uCIhu
但是,我想知道当等级为data[i]<60
红色时是否可以更改线条颜色,使其变为data[i]>=60
蓝色。
$("#chart").kendoChart({
series: [{
name: "Grading",
color: function(point){return point.value<60 ? "red" : "blue"; },
width: 1,
size: 2,
tooltip: {
visible: true,
},
data: [81, 91, 61, 55, 59, 43, 57, 59, 66, 65, 54, 70, 72.37]}
],
seriesDefaults: {
type: "line",
missingValues: "interpolate"
},
});