gpt4 book ai didi

javascript - 如何为 Google Chart 中的特定范围设置颜色?

转载 作者:行者123 更新时间:2023-11-29 23:46:06 26 4
gpt4 key购买 nike

我是图表新手,所以我创建了一个谷歌图表线,我需要更改某些范围的背景颜色,如下图所示。

到目前为止,我的代码非常基础,看起来像这样:

var options = {
vAxis: {
viewWindow: {
min: 0,
max: 100
},
ticks: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
}
};

如何在我的 vAxis 中将背景颜色从 0 更改为 20,使其看起来像这样

color in ranges

最佳答案

经过深入研究,我找到了位于此链接 Google line chart(interactive) api - how we fill different background colors on specified areas 上的解决方案

关于javascript - 如何为 Google Chart 中的特定范围设置颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44068132/

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