X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-layout.js;h=bab1d97afd17f5ec598735a1f0c5b2a3e3e1e1a3;hb=72621b9af29dbd2e1729c3d841e2eef8027ca9b7;hp=552911e3a0f892e43e5fa118a7c715e22a2fa5b5;hpb=c87b4dcf65b323f4df9096ef0f2ef3821aa1430c;p=dygraphs.git diff --git a/dygraph-layout.js b/dygraph-layout.js index 552911e..bab1d97 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 : numer, y : number, w : number, h : number }} + */ DygraphLayout.prototype.getPlotArea = function() { return this.area_; };