Can I show subscript characters on my charts (in the labels)?

« 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.

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):

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


Add a reply

« Back to message list