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.
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() {