How do I change the color of the grid lines for Google Charts API?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the documentation:
http://code.google.com/apis/chart/docs/gallery/bar_charts.html#gcharts_grid_lines
Thus you can have a look at what range markers (chm) are:
http://code.google.com/apis/chart/docs/gallery/bar_charts.html#gcharts_range_markers
To answer your question, you need to use the chm parameter to draw each line separately. The second parameter defines the color:
The code above draws a horizontal line with color #FF0000 in the middle of the chart.