X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=dygraph.js;h=77f9ab4ea6949b666fb2fa55cd6c4ba77552a1ae;hb=06d4204c8b60c71cbb94f740ef07d34011c7c906;hp=29c343bd3b220a6787bd30a16890d4d8c8379ac5;hpb=d9fbba56368920b2d2ae5c04291d684263b2f2b0;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 29c343b..77f9ab4 100644 --- a/dygraph.js +++ b/dygraph.js @@ -282,7 +282,7 @@ Dygraph.DEFAULT_ATTRS = { Dygraph.Plotters.linePlotter ], - plugins : [ ], + plugins: [ ], // per-axis options axes: { @@ -601,6 +601,9 @@ Dygraph.prototype.getOption = function(name, opt_seriesName) { return this.attr_(name, opt_seriesName); }; +Dygraph.prototype.getOptionForAxis = function(name, axis) { + return this.attributes_.getForAxis(name, axis); +} /** * @private * @param String} axis The name of the axis (i.e. 'x', 'y' or 'y2') @@ -1462,10 +1465,8 @@ Dygraph.prototype.doZoomY_ = function(lowY, highY) { /** * Reset the zoom to the original view coordinates. This is the same as * double-clicking on the graph. - * - * @private */ -Dygraph.prototype.doUnzoom_ = function() { +Dygraph.prototype.resetZoom = function() { var dirty = false, dirtyX = false, dirtyY = false; if (this.dateWindow_ !== null) { dirty = true;