Google Charts Visualization柱形图轴格式和列颜色 [英] Google Charts Visualization Column Chart axis formatting and column colors

查看:63
本文介绍了Google Charts Visualization柱形图轴格式和列颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google的可视化图表API工具制作了此柱形图.我如何才能使y轴数字只是正整数?我尝试浏览文档,但似乎找不到任何东西.

I have this Column Chart using Google's Visualization Chart API tools. How would I make it so the y-axis numbers are only positive whole numbers? I've tried looking through the documentation but can't seem to find anything.

推荐答案

我使用了以下内容,但从此以后再也没有见过分数了.

I used the following and have not seen fractions since...

vAxis:{minValue:0,maxValue:5,gridlines:{count:6}}

诀窍似乎是使用6条网格线和5条最低高"值, 一半和十分之一不再适用.

The trick seems to be that with 6 gridlines and 5 as lowest 'high' value, the halves and tenths aren't applicable anymore.

这篇关于Google Charts Visualization柱形图轴格式和列颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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