Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percentage value is off by 1 #102

Open
CodingPeak opened this issue Sep 10, 2014 · 3 comments
Open

Percentage value is off by 1 #102

CodingPeak opened this issue Sep 10, 2014 · 3 comments

Comments

@CodingPeak
Copy link

In the example on your website, the value of the example pie charts is off by 1. I'm also having trouble with this on my website..

http://rendro.github.io/easy-pie-chart/

Look at the pie chart for "new visitors". The code says to put 55% in there. But what happens? 54% is drawed.

Don't know if this is browser related, but I'm having this issue in Google Chrome 37.

EDIT: also happens in Firefox.
EDIT: sometimes, after many refreshes, the script gets to put the correct value in place. How's that possible?

@2GDev
Copy link

2GDev commented Oct 23, 2014

Same issue on Chrome and Internet Explorer.
After some refresh get the correct value.

Please anyone fix it?

@rendro
Copy link
Owner

rendro commented Oct 23, 2014

This is a Math.round / Math.floor problem. The fix will be available soon.

@sandberg75
Copy link

Any updates on this bug?
It's a nice plugin but completly useless to me if it doesn't display accurate values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants