Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Gridlines from Google column chart

I am using the google column chart from this example:

https://developers.google.com/maps/documentation/javascript/examples/elevation-paths

and I want to remove the horizontal gridlines, after searching for apparently below is supposed to make them invisible (I tried with hAxis too) but it does not seem to be effecting the chart at all...

vAxis: {
    gridlines: {
        color: 'transparent'
    }
}

Why is this not doing anything?

like image 460
Cam Connor Avatar asked May 14 '26 03:05

Cam Connor


1 Answers

This will work for sure:

vAxis: {
   minValue: 0,
   gridlines: {
     color:'transparent'
   },
}  
like image 177
CodeNinji Avatar answered May 16 '26 19:05

CodeNinji



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!