我怎么可以自定义这个谷歌条形图? [英] How can I customize this Google Bar Chart?

查看:245
本文介绍了我怎么可以自定义这个谷歌条形图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是一个谷歌的条形图我创造: http://jsfiddle.net/nGvdB/

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:

在横轴,我看到了数字0,1,2,3,4。我希望图形只能从0到3。我已 hAxis.maxValue 设置为3,但它仍然显示,直到4.无我的数据大于

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

相反,水平轴标签读 {0,1,2,3} 我希望它读 {',低 ,医学,高}

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

任何帮助将是很大的AP preciated。

Any help would be greatly appreciated.

推荐答案

使用谷歌图表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

这篇关于我怎么可以自定义这个谷歌条形图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆