如何在 google 图表 api 中将线条和条形与两个 y 轴结合起来?

发布于 2025-01-05 20:07:56 字数 169 浏览 4 评论 0原文

使用谷歌文档,一位同事创建了一个类似于以下内容的图: this one

我正在尝试使用 Google 图表 api 来复制这个图表,但我遇到了问题,因为图表 api 似乎不允许有两个不同的 y 轴。这可能吗?

Using google docs, a colleague has created a plot similar to: this one

I'm trying to use Google charts api to replicate this chart, but I'm having issues as the Chart api does not seem to allow having two different y axes. Is this possible?

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

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

发布评论

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

评论(1

但可醉心 2025-01-12 20:07:56

这很简单,我只是没有正确阅读文档。您只需在配置中指定 axis 参数,它就应该可以工作。

This is pretty easy and I just didn't read the documentation correctly. You just specify the axes parameter in the configuration and it should just work.

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