0-axis for line chart not show in same align with dual y axis.

11 views
Skip to first unread message

Pranav Pathak

unread,
Apr 26, 2017, 9:13:41 AM4/26/17
to Google Visualization API
Is it possible to set both 0-axis on same align?

I can't set static ticks because the series are dynamic and range of the series is not fixed.

Thanks and warm,
Pranav Pathak
chart1.jpg

Daniel LaLiberte

unread,
Apr 26, 2017, 12:23:13 PM4/26/17
to Google Visualization API
There is no way to align multiple axes except by setting the viewWindow for each.  But if you only want to align the 0 values, and all data values are positive (for example), then it should be enough to set viewWindow.min to 0 for both.

Given dynamic data, and if the above simplification doesn't apply, then you could do the necessary computation to determine where the min and max need to be for each axis such that the 0 values align.  Not trivial, but possible.

This is something we should try to add as a standard feature since many people request it.

--
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/a9b2b469-d95b-4f6c-b469-0266df293dd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages