Google 图表 Y 轴与图表栏不成比例

发布于 2024-12-22 12:18:28 字数 812 浏览 3 评论 0原文

我第一次使用谷歌图表。我创建了一个图表,可以在

Google 图表链接

https://chart.googleapis.com/chart?cht=bvg&chxr=0,0,20&chxt=y&chbh=50&chm=N,000000,0,-1,11&chd=t:0.4356,0.3562,0.4834,0.575,0.673,0.6091&chs=500x120&chco=FF3300|0000FF&chd=t:5,15&chl=freightmax|stols

该图表显示了 Y 图表轴的比例,但条形图本身并不按下图所示比例:

Google Chart Image

如果您看到 Stols 条的值为 15,这是正确的,但是根据 y 轴,该值约为 3 或 4。

有什么想法吗?更正这个吗?

提前致谢, 瑞安·史密斯

I have been playing with google charts for the first time. I have created a graph that can be viewed at

Google chart link

https://chart.googleapis.com/chart?cht=bvg&chxr=0,0,20&chxt=y&chbh=50&chm=N,000000,0,-1,11&chd=t:0.4356,0.3562,0.4834,0.575,0.673,0.6091&chs=500x120&chco=FF3300|0000FF&chd=t:5,15&chl=freightmax|stols

The graph displays however the scale of the Y chart axis and the bar chart itself is not in proportion as per image below:

Google Chart Image

If you see the value of the Stols bar is 15 which is correct, however according to the y axis the value is around 3 or 4.

Any ideas how I can correct this?

Thanks in advance,
Ryan Smith

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

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

发布评论

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

评论(1

我要还你自由 2024-12-29 12:18:28

添加比例参数 chds=0,20 应该会有所帮助

https://chart.googleapis.com/chart?cht=bvg&chxr=0,0,20&chxt=y&chbh=50&chm=N,000000,0,-1,11&chd=时间:0.4356,0 .3562,0.4834,0.575,0.673,0.6091&chs=500x120&chco=FF3300|0000FF&chd=t:5,15&chl=freightmax|stols&chds=0,20

参考:Google 图表参数

Adding scale parameter chds=0,20 should help

https://chart.googleapis.com/chart?cht=bvg&chxr=0,0,20&chxt=y&chbh=50&chm=N,000000,0,-1,11&chd=t:0.4356,0.3562,0.4834,0.575,0.673,0.6091&chs=500x120&chco=FF3300|0000FF&chd=t:5,15&chl=freightmax|stols&chds=0,20

Reference: Google chart parameters

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