双轴Google图表显示不正确的比例
我正在尝试使用组合图来构建双轴Google图表。在一侧,y轴按值正确地缩放,而不是另一侧。
参考图像: 示例图表
和我的示例数据:
[
[ "year", "A", "B", "C", "D", "E", "F" ],
[ "2019", 100, 0, 300, 0.0365, 0, 0.1095 ],
[ "2020", 100, 0, 300, 0.073, 0, 0.219 ]
.....
]
您可以看到图表300('C ')在左侧Y轴400处显示。数据点0('b')以100显示。
而右侧Y轴(d,e,f)显示了正确的规模数据。
知道什么是导致这个扩展问题的原因?
I'm trying to build a dual axis google chart using Combo Chart. On one side the Y axis scales correctly as per values but not the other one.
Refer the image:
Sample chart
and my Sample data:
[
[ "year", "A", "B", "C", "D", "E", "F" ],
[ "2019", 100, 0, 300, 0.0365, 0, 0.1095 ],
[ "2020", 100, 0, 300, 0.073, 0, 0.219 ]
.....
]
As you can see the Chart, data point 300 ('C') is shown at 400 in left side Y axis. and data point 0 ('B') is shown at 100.
Whereas the right side Y axis (D,E,F) shows data correctly on scale.
Any idea what's causing this scaling issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来图表被堆叠了。 Isspacked:False在选项中解决了问题。
Looks like the chart was stacked. isStacked: false in options solved the issue.