X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=da0405eaa70e627e374bc4d694022de1d193aa12;hb=34655aba0589dc5f9bdc1f03319d4e7bd9dcfff6;hp=552911e3a0f892e43e5fa118a7c715e22a2fa5b5;hpb=0c667194f29b34d31700aee8029805cef4af5086;p=dygraphs.git diff --git a/dygraph-layout.js b/dygraph-layout.js index 552911e..da0405e 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_; };