I am trying to set the color of the grid lines against the background of my graph using Google graphs.
I have this code to configure chart parameters:
ac.draw(activityData, { title : 'Monthly Coffee Production by Country', isStacked: true, width: 600, height: 400, fontSize: 0, backgroundColor: '#1E4D6B', hAxis.gridlines.color: '#1E4D6B' });
However, I donβt know how to use options like hAxis.gridlines.color
in my code that appear on the options page.
If I just put hAxis.gridlines.color
, it causes an error in the console:
Untrained SyntaxError: Unexpected token.
What is the correct syntax for using options containing periods?
source share