Invert left y-axis of dual axis chart

28 views
Skip to first unread message

DM

unread,
Nov 25, 2016, 8:16:26 AM11/25/16
to Google Visualization API
Hi folks,

Is it possible to change the direction of the left hand y axis in a dual axis chart?

I've been trying variations of stuff like this:

vAxes: {
          0: {direction: -1},
          1: {}
        }

None of it works.

Any help appreciated.

Daniel LaLiberte

unread,
Nov 28, 2016, 10:24:07 AM11/28/16
to Google Visualization API
That looks correct, assuming you are using the classic charts.  Material charts work differently and don't support the direction option yet.

--
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-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@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/bdfcf881-01f1-4de9-b7cd-783d674df529%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Bill Rebey

unread,
Dec 5, 2016, 9:34:53 AM12/5/16
to Google Visualization API
DM, I'm having this same issue with a single-v-axis Bar chart.  I can't get the Bar chart component to display the vertical axis in Descending order.   No matter what order I sort the underlying Data table in, or if the data is unsorted, the Bar chart always sorts it and renders it in ascending vertical order.  "direction" seems to have no effect at all.

Did you get anywhere with this?  Did you find a solution or workaround of any kind?

DM

unread,
Dec 9, 2016, 9:31:13 AM12/9/16
to Google Visualization API
Yep, that was it... you have to use the Classic charts. It worked once I switched from material charts.

Thanks for the reply
Reply all
Reply to author
Forward
0 new messages