Axis control not working?

19 views
Skip to first unread message

Bryan Maloney

unread,
Aug 3, 2016, 9:29:29 AM8/3/16
to Google Visualization API


I have several charts that I do NOT want displayed by Google default axes settings. They are at


I have made an attempt at customizing axes, but they aren't working. The javascript is on the page.

Anyway, what I want is for all the charts to have a Y axis (vertical) range of 0 to 50. All of the charts, no exceptions.

I want the last chart to have an X (horizontal) axis range of 2007 to 2014, with one-year increments for each tick.

I tried to use the options statements, but they have no effect.

Daniel LaLiberte

unread,
Aug 3, 2016, 9:53:20 AM8/3/16
to Google Visualization API
What I can see in your code is that you are setting the viewWindow in your options variable, but you are passing options_lines to your chart draw() call.  Try merging those into one options structure.

--
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/6922ed49-99b8-439a-aebf-e20472abdaed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Bryan Maloney

unread,
Aug 3, 2016, 10:07:40 AM8/3/16
to google-visua...@googlegroups.com
How is that done? Is there a "lines" option that replaces "options_lines" in a generic "options" statement?

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/k4jT7QfKDf0/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Bryan Maloney

unread,
Aug 3, 2016, 10:12:02 AM8/3/16
to google-visua...@googlegroups.com
Never mind, I figured it out. Thank you.
Reply all
Reply to author
Forward
0 new messages