如何为外部系列ZingChart中的绘图值设置颜色



如何在zingchart中为系列数组外的不同值集设置不同的背景色?我应该在哪里以及如何设置value set1和valu set2 的background-color-1

var myConfig = {
    type: "mixed", 
    series : [
        {
          type : 'bar',
            values : [35,42,67,89,25,34,67,85],
            values : [30,40,60,80],
           // how to change background color without setting it here ?
        },
        {
          type : 'line',
            values : [35,42,67,89,25,34,67,85],
            lineWidth : "6px",
            topState : {
              lineWidth : "2px",
              lineColor : "pink"
            }
        }
    ]
};

下面是一个如何做到这一点的工作示例:http://demos.zingchart.com/view/O79F20UY

var调色板中的第一个数组索引表示工具提示的文本颜色(悬停弹出框上),var调色板中第二个数组索引代表系列颜色。

我在这里找到了一个参考自定义调色板的一些文档的答案:http://www.zingchart.com/docs/features/themes/

如果你有任何进一步的问题,请随时联系——我是ZingChart团队的成员。

最新更新