continuous hAxis (horizontal axis) without gridlines

869 views
Skip to first unread message

Lucero del Alba

unread,
Jan 11, 2013, 5:33:00 PM1/11/13
to google-visua...@googlegroups.com
Hi, from what I understand you get grid lines on the hAxis (horizontal axis) only when it is continuous one (see Customizing Axes: Discrete vs Continuous, though you could "draw" grid lines using domain-axis annotations as pointed out by Andrew here), and the minimum amount of vertical lines you can set on the grid via hAxis.gridlines.count config option is 2 via the.  So, is there any way to completely remove the vertical lines on the grid for a continuous hAxis?

Daniel LaLiberte

unread,
Jan 11, 2013, 5:52:18 PM1/11/13
to google-visua...@googlegroups.com
Lucero,

You can specify a gridlines.count of 0 to eliminate the gridlines.   The baseline can also be hidden by giving it a color of 'none', or by setting the baseline value to something outside the view window.

dan


On Fri, Jan 11, 2013 at 5:33 PM, Lucero del Alba <luzd...@gmail.com> wrote:
Hi, from what I understand you get grid lines on the hAxis (horizontal axis) only when it is continuous one (see Customizing Axes: Discrete vs Continuous, though you could "draw" grid lines using domain-axis annotations as pointed out by Andrew here), and the minimum amount of vertical lines you can set on the grid via hAxis.gridlines.count config option is 2 via the.  So, is there any way to completely remove the vertical lines on the grid for a continuous hAxis?

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/Ld9flyqE97gJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.



--
dlaliberte@Google.com   562D 5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Lucero del Alba

unread,
Jan 12, 2013, 1:06:18 PM1/12/13
to google-visua...@googlegroups.com
Hi Daniel, thanks for your response.  The  gridlines.count = 0 does work for the vAxis, but apparently not for the xAxis.  According to the candlestick chart doc, the minimum value for  gridlines.count for the hAxis is 2; however, I can't seem to change it to any value, consider this chart: http://jsfiddle.net/k2hwr/

Would you know why the gridline.count param for the hAxis doesn't seem to work on this example?
    Emiliano

asgallant

unread,
Jan 12, 2013, 1:30:05 PM1/12/13
to google-visua...@googlegroups.com
The gridlines.count parameter is broken when used in conjunction with Date-based axes.  There is a bug report on this issue here (click the star in the upper left corner to be notified of any developments with the issue).


On Saturday, January 12, 2013 1:06:18 PM UTC-5, Lucero del Alba wrote:
Hi Daniel, thanks for your response.  The  gridlines.count = 0 does work for the vAxis, but apparently not for the xAxis.  According to the candlestick chart doc, the minimum value for  gridlines.count for the hAxis is 2; however, I can't seem to change it to any value, consider this chart: http://jsfiddle.net/k2hwr/

Would you know why the gridline.count param for the hAxis doesn't seem to work on this example?
On Fri, Jan 11, 2013 at 7:52 PM, Daniel LaLiberte <dlali...@google.com> wrote:
Lucero,

You can specify a gridlines.count of 0 to eliminate the gridlines.   The baseline can also be hidden by giving it a color of 'none', or by setting the baseline value to something outside the view window.

dan
On Fri, Jan 11, 2013 at 5:33 PM, Lucero del Alba <luzd...@gmail.com> wrote:
Hi, from what I understand you get grid lines on the hAxis (horizontal axis) only when it is continuous one (see Customizing Axes: Discrete vs Continuous, though you could "draw" grid lines using domain-axis annotations as pointed out by Andrew here), and the minimum amount of vertical lines you can set on the grid via hAxis.gridlines.count config option is 2 via the.  So, is there any way to completely remove the vertical lines on the grid for a continuous hAxis?

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/Ld9flyqE97gJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
dlali...@Google.com   562D 5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.



--
    Emiliano

Lucero del Alba

unread,
Jan 12, 2013, 1:32:48 PM1/12/13
to google-visua...@googlegroups.com
Oh, I see, good to be aware of.  Already starred, thanks Andrew.



To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.



--
    Emiliano
Reply all
Reply to author
Forward
0 new messages