如何自定义此 Google 条形图?

发布于 2024-12-20 07:53:40 字数 470 浏览 4 评论 0原文

这是我正在创建的谷歌条形图: http://jsfiddle.net/nGvdB/

我阅读了 Google 条形图文档 此处,但我只是不知道如何自定义此图表。具体来说,我想要这样:

在水平轴上,我看到数字 0,1,2,3,4。我希望图表仅从 0 到 3。我将 hAxis.maxValue 设置为 3,但它仍然显示到 4。我的数据均不大于而

不是水平轴标签读取 {0,1,2,3} 我希望它读取 {'','Low','Med','High'}

任何帮助将不胜感激。

Here is a google bar chart I am creating:
http://jsfiddle.net/nGvdB/

I read up on the Google Bar Chart documentation here but I just cannot figure out how to customize this chart. Specifically, I want this:

On the horizontal axis, I see numbers 0,1,2,3,4. I want the graph only to go from 0 to 3. I have hAxis.maxValue set to 3 but it still shows till 4. None of my data is greater than

Instead of the horizontal axis labels reading {0,1,2,3} I want it to read {'','Low','Med','High'}.

Any help would be greatly appreciated.

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

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

发布评论

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

评论(1

我爱人 2024-12-27 07:53:40

使用谷歌图表 API 相当困难,有一个有用的 jquery 库可以简化问题 http://keith-wood.name /gChart.html

Using google charts API is quite difficult there is useful jquery library that simplifies the issue http://keith-wood.name/gChart.html

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