I agree that this is a bug, and I am working on a fix, which is turning out to be fairly straightforward. It seems to work well to center the tick labels at the middle of the text, which is half the text height. Currently, it is centering at the top of the text.
It will be a few weeks before this change makes it into a release. I can imagine some possible workarounds for when the hAxis has continuous values (doing the offset of all your values yourself, and providing formatted values to compensate), but not for discrete values. On Tue, Jun 4, 2013 at 12:51 PM, <[email protected]> wrote: > I'm using gwt-visualization.jar v1.1.2 to create a ColumnChart. Using the > following code to set the chart options: > > Options options = Options.create(); > options.setWidth(800); > options.setHeight(300); > options.setTitle(title); > AxisOptions axisOpt = AxisOptions.create(); > axisOpt.set("slantedText", true); > axisOpt.set("slantedTextAngle", 90d); > options.setHAxisOptions(axisOpt); > > > The below chart displays as expected, except that the horizontal labels, > e.g. Jun11, are offset from the chart columns. I've tried a few different > ways to adjust this, but no luck. Any suggestions are welcome. > > > > <https://lh5.googleusercontent.com/--Pm5-VIgnaU/Ua4al1pfXPI/AAAAAAAAAjI/Z8uCxwfthUw/s1600/patientChart.png> > > -- > You received this message because you are subscribed to the Google Groups > "Google Chart 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-chart-api?hl=en. > 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 Chart 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-chart-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
