X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=4b600f773b8893a617b081a10245493d2b0c8fca;hb=aa000f5121ef0fd24c61510c3de32c797cd69073;hp=9e042f23f7ed8ba0c39073598eeb6f4067db9412;hpb=3fb516b5e8b861f15754428c6071688ab121bb6c;p=dygraphs.git diff --git a/dygraph-layout.js b/dygraph-layout.js index 9e042f2..4b600f7 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -52,6 +52,12 @@ DygraphLayout.prototype.addDataset = function(setname, set_xy) { this.setNames.push(setname); }; +/** + * Returns the box which the chart should be drawn in. This is the canvas's + * box, less space needed for the axis and chart labels. + * + * @return {{x: number, y: number, w: number, h: number}} + */ DygraphLayout.prototype.getPlotArea = function() { return this.area_; };