gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 17:05:22 27 4
gpt4 key购买 nike

如何为 zingchart 中系列数组外设置的不同值设置不同的背景颜色?我应该在哪里以及如何为值 set1 和值 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 团队的一员。

关于json - 如何在外部系列 ZingChart 中为绘图值设置颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34450748/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com