如何使用 Google Visualization API 设置一系列值的背景?
假设您有一个值从 1 到 100 的折线图,并且您想要显示 50 到 80 之间的值是“正常”的。如何使用 Google Visualization API 将图表的背景设置为 50 到 80 之间的绿色?
这是使用 Dundas 的示例。 20 到 40 美元是粉红色的: http://support2.dundas.com/OnlineDocumentation/WebChart2005/images/StripLinesAfter.png
Suppose you have a line chart with values from 1 to 100, and you want to show that values between 50 and 80 are "normal". How can you set the background of the chart between 50 to 80 to green using the Google Visualization API?
Here is an example using Dundas. $20 to $40 is pink:
http://support2.dundas.com/OnlineDocumentation/WebChart2005/images/StripLinesAfter.png
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,没有直接的方法可以做到这一点。我可以立即想到两种方法:
Unfortunately, there's no straightforward way to do this. Two ways I can think of off the top of my head: