X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=328da815585689de7241550d6336c1cff97502c7;hb=3c10a0f3519355ee651d04bf2972bd31298eff18;hp=6f8f2fdb9f3f924c31ae7c8c27e4781afea121be;hpb=758a629f806fa73483f730fb343013acd0ace078;p=dygraphs.git diff --git a/dygraph-layout.js b/dygraph-layout.js index 6f8f2fd..328da81 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -99,6 +99,11 @@ DygraphLayout.prototype.computePlotArea_ = function() { // doesn't, the yAxisLabelWidth option can be increased. } + if (this.attr_('y2label')) { + // same logic applies here as for ylabel. + // TODO(danvk): make yAxisLabelWidth a per-axis property + } + // Add space for range selector, if needed. if (this.attr_('showRangeSelector')) { area.h -= this.attr_('rangeSelectorHeight') + 4;