X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=dygraph-canvas.js;h=04c53b81bd077f069ce928a0214fd22fd5a62a0a;hb=ecf9b464f6a10e3b99f22132ec300e2f83584aaf;hp=4606dfb906a00c89c9c20ca392902eac61e569ba;hpb=fac494f30a31bb8fff4d688c4b9964cbc8741318;p=dygraphs.git diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 4606dfb..04c53b8 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -786,7 +786,9 @@ DygraphCanvasRenderer.prototype._renderLineChart = function() { prevX = point.canvasx; prevY = point.canvasy; } else { - // TODO(danvk): figure out why this conditional is necessary. + // TODO(antrob): skip over points that lie on a line that is already + // going to be drawn. There is no need to have more than 2 + // consecutive points that are collinear. if (strokeWidth) { ctx.beginPath(); ctx.strokeStyle = color;