How do I remove the horizontal grid lines in a Google visualization line chart? I have already tried setting
minorGridlines: {count: 0 }, gridlines: {count: 0 }
on both hAxis and vAxis.
Here is a jsfiddle of my chart.
How do I remove the horizontal grid lines in a Google visualization line chart? I have already tried setting
minorGridlines: {count: 0 }, gridlines: {count: 0 }
on both hAxis and vAxis.
Here is a jsfiddle of my chart.
Set the vAxis.gridlines.color
option to "transparent" to make them disappear:
vAxis: {
gridlines: {
color: 'transparent'
}
}
This doesn't work for the charts when displayed in IE < 9 (as those versions use VML instead of SVG, and the chart's don't support transparency in VML). In this case, you will need to set the gridline color to match the background color of the chart.
Set gridlines color to none
gridlines: {
color: 'none'
}
This will also work
Tested & Working...
options = {
vAxis: {
gridlines: {
interval: 0
}
}
}
gridlines.count:0
is mentioned in the docs
You can specify a value of 1 to only draw one gridline, or 0 to draw no gridlines.
© 2022 - 2024 — McMap. All rights reserved.