Hi Timothy, I understand your frustration with the need for aligning the left and right vertical axes, but the API currently has no support for an alignment option. We are considering how to add such an option, but until then, you'll have to find a way to calculate the minValue and maxValue, maybe for both the left and the right sides, such that the alignment occurs as a side effect.
If you want the 0 value to always align in the center, that might make the calculations simpler. You only need to set the minValue and maxValue to the negative and positive extremes given the larger of the min and max data values. Hope that helps. dan On Mon, Jul 29, 2013 at 9:26 AM, Timothy Wall <[email protected]> wrote: > I have a combo chart displaying an overlay of two different data sets, > which tend to have a correlation, but have different scales/units. > > The left side never has values less than zero, but I'd still like to align > the zero points of both axes. However, the right axis sometimes has less > than zero values, which means that the left side zero ends up aligning with > whatever minimum value is on the right. > > What I'd like to do is align the zero points, preferably without > hard-coding some negative minimum value for the left axes (which *might* be > calculable by performing some conversion on the RHS data, but that'd be > really ugly and I have no idea how to derive the relation between the data > sets as displayed in the graph). > > In the attachment, the graph with all the annotations needs to move up to > share a baseline with the skyline in green, thus clearing up the space > around the timeline-esque bars. > > BTW, I initially started writing the timeline bars in a timeline graph, > but there's no way to dynamically scale those horizontally so they match > the main graph, as well as the fact that timeline doesn't seem to play well > with dashboard controls. > > -- > 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 [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 562D 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
