Numbers with Percent symbol


« 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 emil on 12th August 2013
Hi, is there a way to show a line chart if the numbers feeding it have percent(%) symbol after it? Thanks.
Posted by RGraph support on 12th August 2013
Hi there,

You'll need to convert them to numbers when you give them to the Line chart object. eg:

obj = new RGraph.Line('cvs', [45,56,12,35,75,78,98]);

but you can then set the units.post option that applies to the scale:

obj.Set('chart.units.post', '%');






Richard, RGraph Support

Help support RGraph - single site license only £99
   www.rgraph.net/license#single-site

Add a reply

 




« Back to message list
RGraph on social media