How can I customize this Google Bar Chart?

倖福魔咒の 提交于 2020-01-02 07:07:10

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/8412385/how-can-i-customize-this-google-bar-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!