Regarding Chart Legend Customization.

43 views
Skip to first unread message

Amit Sharma

unread,
May 20, 2013, 9:18:47 AM5/20/13
to google-visua...@googlegroups.com
Hi,
  I have a chart where I need to append Organization based currency Symbol to its legend and what I have is hexa code for currency symbol like :$ 
Since my legend configuration is in Service Implementation side.I cannot append my customized HTML to legend. Can you please suggest the way to proceed.

Sergey Grabkovsky

unread,
May 20, 2013, 9:52:50 AM5/20/13
to google-visua...@googlegroups.com
I'm afraid that our legend is not implemented in HTML, and therefore doesn't understand HTML codes. Our API is a javascript API, and the strings given to it must be encoded as javascript strings. The equivalent code to specify in a javascript string would be '\x24'. I'm sure you can figure out a way to process your code and turn it into a javascript string.

- Sergey


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

asgallant

unread,
May 20, 2013, 9:56:48 AM5/20/13
to google-visua...@googlegroups.com
The chart legend derives its text from the column labels in the DataTable, so you have to add the currency symbol to the column labels.  Note that you have to use the unicode value for the currency symbol when you add it to the label (the HTML code for the symbol will not work).
Reply all
Reply to author
Forward
0 new messages