0
我有两个dataseries
,并希望给不同的颜色如下。然而,无论我分配不同的颜色,我最后都以相同颜色作为最后一个系列的颜色(#006666)。颜色分配剑道图
self.dataSeries[0].color = "#66FF66";
self.dataSeries[1].color = "#006666";
chart.options.series = self.dataSeries;
我有两个dataseries
,并希望给不同的颜色如下。然而,无论我分配不同的颜色,我最后都以相同颜色作为最后一个系列的颜色(#006666)。颜色分配剑道图
self.dataSeries[0].color = "#66FF66";
self.dataSeries[1].color = "#006666";
chart.options.series = self.dataSeries;
这是你做的方式,
这里代码例如:
$("#chart").data("kendoChart").options.series[0].color = "#66FF66";
$("#chart").data("kendoChart").options.series[1].color = "#006666";
$("#chart").data("kendoChart").refresh();
注:有一个图表和一个按钮分配新的颜色改变系列彩色