mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 04:39:06 +02:00
Only draw positive radius arcs Fixes #592
This commit is contained in:
parent
7f513b87ee
commit
1df2b37bc5
@ -1293,9 +1293,9 @@
|
||||
|
||||
ctx.beginPath();
|
||||
|
||||
ctx.arc(this.x, this.y, this.outerRadius, this.startAngle, this.endAngle);
|
||||
ctx.arc(this.x, this.y, this.outerRadius < 0 ? 0 : this.outerRadius, this.startAngle, this.endAngle);
|
||||
|
||||
ctx.arc(this.x, this.y, this.innerRadius, this.endAngle, this.startAngle, true);
|
||||
ctx.arc(this.x, this.y, this.innerRadius < 0 ? 0 : this.innerRadius, this.endAngle, this.startAngle, true);
|
||||
|
||||
ctx.closePath();
|
||||
ctx.strokeStyle = this.strokeColor;
|
||||
|
Loading…
Reference in New Issue
Block a user