X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-canvas.js;h=85d10684f696d41a02505d20b713a77b3fcc6264;hb=b14474355adc48afa05296d76c9ed557120c1f5a;hp=971a038199634630973725313d79c754fd081ccf;hpb=74a5af31a87b245b89337037bc33a0e900153eae;p=dygraphs.git diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 971a038..85d1068 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -12,12 +12,8 @@ */ /** - * This class determines the charting area (in pixel coordinates), maps the - * percentage coordinates in the DygraphLayout to pixels and draws them. - * It's also responsible for creating chart DOM elements, i.e. annotations, - * tick mark labels, the title and the x/y-axis labels. - * This class is based on PlotKit.CanvasRenderer. - * + * The DygraphCanvasRenderer class does the actual rendering of the chart onto + * a canvas. It's based on PlotKit.CanvasRenderer. * @param {Object} element The canvas to attach to * @param {Object} elementContext The 2d context of the canvas (injected so it * can be mocked for testing.) @@ -760,7 +756,6 @@ DygraphCanvasRenderer.prototype._renderLineChart = function() { // setup graphics context context.save(); - var point = this.layout.points[0]; var pointSize = this.dygraph_.attr_("pointSize", setName); var prevX = null, prevY = null; var drawPoints = this.dygraph_.attr_("drawPoints", setName);