Gauge charts problem when min max values are 0/1 - bad spacing and tickmarks

Share RGraph:   Share or Like RGraph on Facebook!

« 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 mat on 18th June 2014
When I have a gauge with min value 0 and max value 2, for example, I get a gauge with the following ticks : 0,0,1,1,2,2.
which is bad, cause the numbers are not suppose to repeat (they suppose to appear only once).

the fiddle bellow explains everything.

how to fix that?
The best is the it will show on ticks values like 0.5, 1.5, etc. but if it's not possible, it would be better not showing the "bad" ticks at all.


jsfiddle:
jsfiddle.net/5LSbz/

Thanks!
Posted by Richard on 18th June 2014
Add this:

obj.set('scale.decimals',1)


Richard
Posted by mat on 18th June 2014
Thanks.

Add a reply




« Back to message list