Trying to get units displayed on the Vertical Progress bar

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 Robert on 30th January 2016
I'm using the "Vertical Progress Bar."
On the right side is 100 (top) and 0 (bottom), increment is 10.

I would like for these to have the "%" sign attached, but not able to figure out how to do this.

I'm don't want my students to have to "assume" that these numbers represent a percentage, I'd rather just show this information.


In the code, I've tried attaching the % sign something like this:

      id: 'cvs',
      min: 0 +'%',
      max: 100 +'%',


Obviously is not working.

I just started using RGraph and am very pleased and excited to enhance my Math pages with your beautiful graphs.

Thanks,
Robert
Posted by Richard on 30th January 2016
Hi,

You can use the unitsPre option like this:

www.rgraph.net/fiddle/view.html/a-vprogress-with-units




Richard
Posted by Robert on 30th January 2016
Thank you, that solved my little problem.

Add a reply




« Back to message list