Annotation Help

36 views
Skip to first unread message

Craig

unread,
Aug 8, 2012, 3:12:53 PM8/8/12
to Google Visualization API
I am trying to customize the annotations on my annotated timeline
chart. Right now I have annotations for four points on my graph. For
one of the points I would like to be able to display a few sentences
and then have one or two newlines and then a few more sentences. Is
this possible? No matter how many newline characters I add the two
strings are always one space apart.

ex. line of code:

dataTable.setValue(rowNum, 4, " Some text" + "\r\nSome more text");

the desired output on the side of my chart would be:

A: Some text

Some more text

Craig

unread,
Aug 9, 2012, 11:40:24 AM8/9/12
to google-visua...@googlegroups.com
Update: Found the solution on a post way back. If you use the allowHtml option you can add Html characters so by adding <br\> to my string I was able to format the annotations the way that I wanted to : ) 
Reply all
Reply to author
Forward
0 new messages