在图表上的线条之间填充

发布于 2024-11-18 18:53:34 字数 1417 浏览 2 评论 0原文

我一直在使用 Google 可视化 API 的带注释的时间线图来显示各种带注释的线。然而,我一直在努力在图表上的上限线和下限线之间进行着色,以指示可接受的实际值范围。

我能够使用图像图表库得到正确的结果 - 这里有一个链接显示我在下面尝试的内容,但问题是谷歌强加了 2000 条记录的数据限制。

下面链接中的 chm=b,00FF0066,0,2,0 是第 0 行和第 2 行之间的绿色区域的颜色。

<一href="http://chart.googleapis.com/chart?chs=440x220&cht=lxy&chco=3072F3,FF0000,FF9900&chds=0,30,0,100,0,30,6,15,0,30 , 0,30&chd=t:-1|13.05,13.05,13.05,13.05,13.05,13.05,13.05,13.05 ,13.05,13.05,13.05,13.05|-1|6.108,7.183,6.964,8.063,8.05,6.96,-1, -1,-1,-1,-1,-1|-1|7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252&chdl=下限|值|上限&am p;chdlp=b&chls=2|1|1&chma=0,5,5,25&chtt=有限+范围+图表&chm=b,00FF0066,0,2,0&chf=c,s, ff000033|bg、s、efefef" rel="nofollow">http://chart.googleapis.com/chart?chs=440x220&cht=lxy&chco=3072F3,FF0000,FF9900&chds=0,30,0,100,0,30,6,15, 0,30,0,30&chd=t:-1|13.05,13.05,13.05,13.05,13.05,13.05,13.05,13 .05,13.05,13.05,13.05,13.05|-1|6.108,7.183,6.964,8.063,8.05,6.96,-1 ,-1,-1,-1,-1,-1|-1|7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252&chdl=下限|值|上限&c hdlp=b&chls=2|1|1&chma=0,5,5,25&chtt=有限+范围+图表&chm=b,00FF0066,0,2,0&chf=c,s,ff000033| bg,s,效果

我也尝试过 Visualization API 的图像图表,但它只是忽略了我在上面的代码片段中使用的 chm 选项。

任何关于如何绕过可视化限制的想法都非常受欢迎,我也尝试在其他 API 中寻找此功能,但谷歌似乎只认为这在 excel 中是可能的,据我所知。

I have been using Google visualisation API's annotated timeline graph to display various annotated lines. However, I have been struggling to colour between an upper and lower limit line on the chart to indicate an acceptable range of actual values.

I was able to get it right using the Image chart library - heres a link showing what I am trying for below, but the problem with this is the data limitation google imposes of 2000 records.

chm=b,00FF0066,0,2,0 from the link below is what colors the area between line 0 and 2 green.

http://chart.googleapis.com/chart?chs=440x220&cht=lxy&chco=3072F3,FF0000,FF9900&chds=0,30,0,100,0,30,6,15,0,30,0,30&chd=t:-1|13.05,13.05,13.05,13.05,13.05,13.05,13.05,13.05,13.05,13.05,13.05,13.05|-1|6.108,7.183,6.964,8.063,8.05,6.96,-1,-1,-1,-1,-1,-1|-1|7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252,7.252&chdl=LowerLimit|Value|UpperLimit&chdlp=b&chls=2|1|1&chma=0,5,5,25&chtt=Limited+Range+Graph&chm=b,00FF0066,0,2,0&chf=c,s,ff000033|bg,s,efefef

I have tried the Visualisation API's image chart as well, but it just ignores the chm option I used in the above snippet.

Any idea's how to get around the visualisation limitation more than welcome, I have also tried looking around for this capability in other API's, but google only seems to think this is possible in excel, near as I can tell.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

习惯成性 2024-11-25 18:53:34

带注释的时间线(实际上是整个非图像图表可视化实现)不支持两行之间的着色。目前确实没有任何东西可以让您执行此操作:最接近的 Highcharts 是这个,所以看看是否这对你有用。

The annotated timeline (and in fact the entire non-Image chart visualization implementation) doesn't support coloring between 2 lines. There currently really isn't anything that lets you do this: the closest Highcharts comes to is this, so see if that works for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文