Skip to content

Commit

Permalink
Merge pull request #1092 from tannerlinsley/negative-arcs-fix
Browse files Browse the repository at this point in the history
Only draw positive radius arcs Fixes #592
  • Loading branch information
etimberg committed Nov 17, 2015
2 parents 07aa947 + 1df2b37 commit 4297672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Chart.Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1307,9 +1307,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;
Expand Down

0 comments on commit 4297672

Please sign in to comment.