X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=4b600f773b8893a617b081a10245493d2b0c8fca;hb=2323945cebe74e7ca1f3897fcb5e7a5aed5fc80f;hp=9e042f23f7ed8ba0c39073598eeb6f4067db9412;hpb=d9ab36fadfa6a2136c9089c4b26bf09b7697f416;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_; };