From 74018de8a92f3dd5ca02f6f04f1617fc8bfc03be Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Thu, 5 Jul 2012 20:28:09 -0700 Subject: [PATCH] got it! --- dygraph-layout.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/dygraph-layout.js b/dygraph-layout.js index fe831a6..a5e6908 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -64,12 +64,6 @@ DygraphLayout.prototype.computePlotArea_ = function() { y: 0 }; - /* - if (this.attr_('drawYAxis')) { - area.x = this.attr_('yAxisLabelWidth') + 2 * this.attr_('axisTickSize'); - } - */ - area.w = this.dygraph_.width_ - area.x - this.attr_('rightGap'); area.h = this.dygraph_.height_; @@ -124,25 +118,6 @@ DygraphLayout.prototype.computePlotArea_ = function() { }; this.dygraph_.cascadeEvents_('layout', e); - /* - if (this.attr_('drawXAxis')) { - if (this.attr_('xAxisHeight')) { - area.h -= this.attr_('xAxisHeight'); - } else { - area.h -= this.attr_('axisLabelFontSize') + 2 * this.attr_('axisTickSize'); - } - } - */ - - // Shrink the drawing area to accomodate additional y-axes. - if (this.dygraph_.numAxes() == 2) { - // TODO(danvk): per-axis setting. - area.w -= (this.attr_('yAxisLabelWidth') + 2 * this.attr_('axisTickSize')); - } else if (this.dygraph_.numAxes() > 2) { - this.dygraph_.error("Only two y-axes are supported at this time. (Trying " + - "to use " + this.dygraph_.numAxes() + ")"); - } - // Add space for range selector, if needed. if (this.attr_('showRangeSelector')) { area.h -= this.attr_('rangeSelectorHeight') + 4; -- 2.7.4