Google 图表 Y 轴与图表栏不成比例
我第一次使用谷歌图表。我创建了一个图表,可以在
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 图表轴的比例,但条形图本身并不按下图所示比例:
如果您看到 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
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:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加比例参数 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