Your solution works in Google Visualization Playgroung tool, but not in my app. I write on my own the JSON file with data for the chart, so do I have to use particular method to embed the javascript code? I tried with different escape methods with success.
I wait any suggestion, thanks Rita Il giorno mercoledì 14 novembre 2012 17:07:07 UTC+1, asgallant ha scritto: > > You can't use HTML in the labels. To encode non standard characters, you > have to use the javascript UTF code, e.g. "\u00E0" for "à". The linebreak > character in javascript is "\n", but I suspect the API strips out extra > whitespace characters, as the linebreaks are not preserved when the chart > is drawn. So, short answer, no you cannot use linebreaks in your title or > labels in the charts. > > On Wednesday, November 14, 2012 6:03:21 AM UTC-5, Rita wrote: >> >> Hello everybody. >> How can I escape html in my charts? >> I have accented characters and in the DataTable I use the property >> allowHtml:true that allow me to see correctly accented character. For >> example "à" is converted in "à". >> But the chart shows me "à", without converting it. I cannot find a >> property like allowHtml for the charts, can you help me? Could me suggest a >> way to visualize >> both in DataTable and in the chart accented characthers? >> Moreover the escape for html could be useful to format properly the title >> of charts for example to insert <br>. Is it possibile? >> I have tried to use any kind of escape without success. >> >> Thank you >> Rita >> > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/0SRGhlRQHS4J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
