如何自定义此 Google 条形图?
这是我正在创建的谷歌条形图: 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 技术交流群。

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