From: Dan Vanderkam Date: Thu, 3 Dec 2009 18:20:29 +0000 (-0800) Subject: fix partial arc bug in IE (degrees -> radians) X-Git-Tag: v1.0.0~819 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=7bf6a9fe815c9760dc35e28b7db2bec3dbe3adfd;p=dygraphs.git fix partial arc bug in IE (degrees -> radians) --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 58e6917..11affc2 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -537,7 +537,8 @@ DygraphCanvasRenderer.prototype._renderLineChart = function() { if (drawPoints || isIsolated) { ctx.beginPath(); ctx.fillStyle = color; - ctx.arc(point.canvasx, point.canvasy, pointSize, 0, 360, false); + ctx.arc(point.canvasx, point.canvasy, pointSize, + 0, 2 * Math.PI, false); ctx.fill(); } } diff --git a/dygraph.js b/dygraph.js index c5ee9d1..402bcc7 100644 --- a/dygraph.js +++ b/dygraph.js @@ -755,7 +755,7 @@ Dygraph.prototype.mouseMove_ = function(event) { ctx.beginPath(); ctx.fillStyle = this.colors_[i%clen]; ctx.arc(canvasx, this.selPoints_[i%clen].canvasy, circleSize, - 0, 360, false); + 0, 2 * Math.PI, false); ctx.fill(); } ctx.restore();