projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #194 from kberg/unzoom
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
29c343b
..
77f9ab4
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-282,7
+282,7
@@
Dygraph.DEFAULT_ATTRS = {
Dygraph.Plotters.linePlotter
],
Dygraph.Plotters.linePlotter
],
- plugins
: [ ],
+ plugins: [ ],
// per-axis options
axes: {
// per-axis options
axes: {
@@
-601,6
+601,9
@@
Dygraph.prototype.getOption = function(name, opt_seriesName) {
return this.attr_(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')
/**
* @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.
/**
* 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;
var dirty = false, dirtyX = false, dirtyY = false;
if (this.dateWindow_ !== null) {
dirty = true;