简体   繁体   中英

google charts bar chart - very high and low values

I have a problem with displaying the low values in my charts.

条形图

The values for this chart are:

total: 210155
reads: 48759
clicks: 9284
hb: 88
sb: 66
spam: 13

I need to have a very low first gridline, around a 100. So I would get 100, 100K 200K.

I tried adding the: hAxis.logScale option, but this didn't work.

Does anybody know how I would go about this?

I was able to get the hAxis.logScale working when I changed back to the old google charts instead of the material design charts. The option doesn't seem to be working yet.

I changed this:

var chart = new google.charts.Bar(document.getElementById('barchart'));

To:

var chart = new google.visualization.BarChart(document.getElementById('barchart'));

And it worked straight away, this did change to look of my chart tho. 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM