Dissappearing vertical axis labels and title

604 views
Skip to first unread message

Martin Noyes

unread,
Sep 6, 2019, 10:05:38 AM9/6/19
to Google Visualization API
This is a mystery. Somehow the presence of vertical axis labels and axis title is sensitive to the data displayed. With some data they appear but with most data they do not. I'm using a mirror log vertical axis with ticks. In all cases the data is well within the bounds of the graph and the size is more than adequate to support the labels and title. I have a large margin around the chart. I can remove some of the ticks and reduce the font size but it doesn't help. Note that even the axis title/name disappears! That's what's really weird! Any ideas?

Martin Noyes

unread,
Sep 6, 2019, 10:26:04 AM9/6/19
to Google Visualization API


On Friday, September 6, 2019 at 10:05:38 AM UTC-4, Martin Noyes wrote:
This is a mystery. Somehow the presence of vertical axis labels and axis title is sensitive to the data displayed. With some data they appear but with most data they do not. I'm using a mirror log vertical axis with ticks. In all cases the data is well within the bounds of the graph and the size is more than adequate to support the labels and title. I have a large margin around the chart. I can remove some of the ticks and reduce the font size but it doesn't help. Note that even the axis title/name disappears! That's what's really weird! Any ideas?

Saw this in a post regarding a different problem with axis labels and it solved all my problems. Added the following option instead of explicitly adding tick marks:
gridlines: { count: -1}

Daniel LaLiberte

unread,
Sep 6, 2019, 11:51:02 PM9/6/19
to Google Visualization API
Thanks for the update, and glad you got your issues resolved.  Yes, letting the chart decide how many gridlines to draw (with count: -1) helps avoid several problems.  I'd like to make it the default, but many existing charts still expect the old behavior.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/7a35d190-b6f1-4056-9b82-42e7722e09d4%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages