Trying to eliminate X-Axis Labels on a line chart

23 views
Skip to first unread message

Kent Hendrix

unread,
Nov 30, 2018, 8:30:09 PM11/30/18
to Google Visualization API
I have several line charts that I want to stack on top of each other, that all have the same X axis, but differing Y axes.
Since all of the X Axis labels are redundant, I'd like to only keep the one on the bottom and kill the others.
I don't seem to be able to find a 'visible' attribute for axis labels.  Any ideas would be helpful.

I've created a fiddle for the example.


Thanks

Kent

Daniel LaLiberte

unread,
Dec 1, 2018, 1:05:48 PM12/1/18
to google-visua...@googlegroups.com
You need to set the textStyle.color to 'none'.  You can also adjust the chartArea.bottom and .top to leave less of gap, but don't make the top chart's bottom be too small, or it won't know that it draw the gridlines associated with the ticks.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/ed135249-418f-4e89-97fb-2d9018ada07b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages