Column chart slanted text on multiple lines

250 views
Skip to first unread message

Remco Bierbooms

unread,
Jan 15, 2013, 5:29:55 AM1/15/13
to google-visua...@googlegroups.com
I have a Google Column chart with just five bars. The horizontal axis labels are slanted (hAxis.slantedText = true, hAxis.slantedTextAngle = 30). Because the labels are quite long, they get cropped off ("this axis label is too l..."). However, since there is enough space between the bars, I would prefer to place the slanted text on multiple lines. Would this be possible?

asgallant

unread,
Jan 15, 2013, 11:39:30 AM1/15/13
to google-visua...@googlegroups.com
In theory, some combination of values for hAxis.maxAlternation and hAxis.maxTextLines should work, but in practice, I've rarely been able to make it work.

Varun Chopra

unread,
May 30, 2018, 7:55:50 PM5/30/18
to Google Visualization API
Hi Remco,
You can make it multiline by using \n in your labels.
Reply all
Reply to author
Forward
0 new messages