From 7bf6a9fe815c9760dc35e28b7db2bec3dbe3adfd Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Thu, 3 Dec 2009 10:20:29 -0800 Subject: [PATCH] fix partial arc bug in IE (degrees -> radians) --- dygraph-canvas.js | 3 ++- dygraph.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.7.4