双轴Google图表显示不正确的比例

发布于 2025-01-28 01:44:19 字数 482 浏览 4 评论 0原文

我正在尝试使用组合图来构建双轴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 技术交流群。

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

发布评论

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

评论(1

如若梦似彩虹 2025-02-04 01:44:19

看起来图表被堆叠了。 Isspacked:False在选项中解决了问题。

Looks like the chart was stacked. isStacked: false in options solved the issue.

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