Chart labels with subscripts

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by mark winger on 19th December 2013
Is there a way to specify subscript characters in a key label of a graph?

I tried this, .Set('key','Co<sub>2</sub>') but that is not the way.

Thanks.
Posted by RGraph support on 20th December 2013
Hi there,

Graph labels aren't HTML so you can't use HTML tags or entities - you need to use
something like the Windows character map program to select the character you want and then use it in your labels like this example (the last key label has a superscript 2):

dev.rgraph.net/fiddle/view/a-line-chart-with-a-key

It also may help if you specify the character set that the page should use in the headers - though this may be unecessary.

Content-Type: text/html; charset=ISO-8859-1


Richard, RGraph Support
www.rgraph.net
Please link to the RGraph website

Add a reply




« Back to message list