mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fixed issue where arc.inRange was sometimes over π threshold
This commit is contained in:
parent
34f8bc99c6
commit
48b8a3a2c5
2
Chart.js
vendored
2
Chart.js
vendored
@ -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
2
Chart.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user