Deleted unnecessary line that was causing variable name collision that affected singl...
[dygraphs.git] / dygraph-canvas.js
index 971a038..85d1068 100644 (file)
  */
 
 /**
- * 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);