X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=5fd6e5253adf88211a8de508ebae4c383f4e1841;hb=c1f22b5a5d4ffbf25a75fc567232e65381c1938b;hp=915d23510c75bc6815d90fa666fa60a3165016bf;hpb=ccd9d7c2bf76882f57d29161fe69b0db53124f54;p=dygraphs.git diff --git a/dygraph-layout.js b/dygraph-layout.js index 915d235..5fd6e52 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -30,7 +30,6 @@ DygraphLayout = function(dygraph) { this.datasets = new Array(); this.annotations = new Array(); this.yAxes_ = null; - this.plotArea = this.computePlotArea_(); // TODO(danvk): it's odd that xTicks_ and yTicks_ are inputs, but xticks and // yticks are outputs. Clean this up. @@ -46,6 +45,10 @@ DygraphLayout.prototype.addDataset = function(setname, set_xy) { this.datasets[setname] = set_xy; }; +DygraphLayout.prototype.getPlotArea = function() { + return this.computePlotArea_(); +} + // Compute the box which the chart should be drawn in. This is the canvas's // box, less space needed for axis and chart labels. DygraphLayout.prototype.computePlotArea_ = function() {