I have incorrect decimals on my VProgress when the range is small
« Back to message list
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 2017www.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
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 2017It's trying to use decimals but rounding the numbers. So try setting the scaleDecimals property to 1 or 2.
Richard
Thanks I will try that.
Add a reply
« Back to message list