Fixed issue where arc.inRange was sometimes over π threshold

This commit is contained in:
Tanner Linsley 2015-06-16 11:46:50 -06:00
parent 34f8bc99c6
commit 48b8a3a2c5
3 changed files with 3 additions and 3 deletions

2
Chart.js vendored
View File

@ -2587,7 +2587,7 @@
calculateCircumference: function(value) {
if (this.getDataset().total > 0) {
return (Math.PI * 2) * (value / this.getDataset().total);
return (Math.PI * 1.999999) * (value / this.getDataset().total);
} else {
return 0;
}

2
Chart.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -165,7 +165,7 @@
calculateCircumference: function(value) {
if (this.getDataset().total > 0) {
return (Math.PI * 2) * (value / this.getDataset().total);
return (Math.PI * 1.999999) * (value / this.getDataset().total);
} else {
return 0;
}