X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-canvas.js;h=9a124596752d63d392620c039eb57172cb4ceb28;hb=bbba718a601c4632528e03641caef72b0f908b5e;hp=f4140e676da7d8e2a0a74fade315b498f0ce847d;hpb=ccd9d7c2bf76882f57d29161fe69b0db53124f54;p=dygraphs.git diff --git a/dygraph-canvas.js b/dygraph-canvas.js index f4140e6..9a12459 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -44,7 +44,7 @@ DygraphCanvasRenderer = function(dygraph, element, elementContext, layout) { this.annotations = new Array(); this.chartLabels = {}; - this.area = layout.plotArea; + this.area = layout.getPlotArea(); this.container.style.position = "relative"; this.container.style.width = this.width + "px"; @@ -155,6 +155,7 @@ DygraphCanvasRenderer.prototype.render = function() { if (this.attr_('drawYGrid')) { var ticks = this.layout.yticks; + // TODO(konigsberg): I don't think these calls to save() have a corresponding restore(). ctx.save(); ctx.strokeStyle = this.attr_('gridLineColor'); ctx.lineWidth = this.attr_('gridLineWidth');