I have incorrect decimals on my VProgress when the range is small


« 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 Scott McCoy on 8th December 2017
I don't see what I did wrong but I have been asked to provide decimals for small ranges like minimum of 6 to maximum of 9 for this bar
www.rgraph.net/demos/svg-bar-vprogress.html
So if I have a value of 7.26 it is on the bottom of the bar which is right, but to the right where the tics are it shows 6,6,7,7,7,8,8,8,8,9. Also for small ranges it seems that the proportion of the bar is wrong to the range, where if the range is 0 to 14 then the proportion is correct. So I have a bug somewhere for small min/max ranges.
Here is a PNG example of what the issue is app.box.com/s/ly4w7hp59vq79oe7h6r1a2xy1i699uhh
Posted by Richard on 8th December 2017
Hi there,

It's trying to use decimals but rounding the numbers. So try setting the scaleDecimals property to 1 or 2.

Richard
Posted by Scott McCoy on 8th December 2017
Thanks I will try that.

Add a reply




« Back to message list