As the title says it, I'm wondering why I cannot remove gridlines from the chart area on gvisLineChart objects in R. I've had a read through the documentation and tried using the respective commands written there - namely:
options = list(
hAxis.gridlines = "{color:'transparent', count:0}",
vAxis.gridlines = "{color:'transparent', count:0}"
)
I also tried implementing the suggested solutions in
I want to remove these gridlines, the axis ticks and the bold horizontal line that goes through y=0 to give the plot a very minimalistic look. How can I do this with R, granted that I've exhausted the above mentioned suggestions to no avail? Thanks.
CodePudding user response:
try the following format, to ensure hAxis
exists as an object...
hAxis = "{gridlines: {color:'transparent', count:0}}",
EDIT
to remove the lines but keep the labels, remove count: 0
to change the color of the baseline (bold horizontal line going through y = 0),
use option baselineColor
hAxis = "{baselineColor: 'transparent', gridlines: {color:'transparent'}}",