[visualization-api] Line breaks in axis labels and chart titles

2,031 views
Skip to first unread message

kdorff

unread,
May 4, 2010, 11:55:32 AM5/4/10
to Google Visualization API
I am new to Google Visualizations and really like it so far. My one
current problem is that my chart titles and axis labels can be long
and I want to wrap them to two lines for readability.

I've tried inserting | (which Google Charts seems to use, from what
I've read), \n and \\n and <br> and <br/> into the text to break the
line, but none of those work.

Can anybody point me at how to do this? The charts I am currently
using are

piechart
columnchart

Thanks,
Kevin

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

Viz Kid

unread,
May 24, 2010, 3:51:59 AM5/24/10
to google-visua...@googlegroups.com

Hi. 

A new version of these charts was just released in Google I/O.
Please see the documentation on how to migrate to the new charts (the key change is using the package 'corechart' instead of 'columnchart' and 'piechart'). In the new charts we allow wrapping of two lines for the main title and the legend entries by default (only upon spaces).

Hope you will enjoy the new charts.

  Viz Kid 
Reply all
Reply to author
Forward
0 new messages