projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lint checks mostly pass
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
f0ced90
..
bcfd52f
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-44,7
+44,7
@@
*/
/*jshint globalstrict: true */
*/
/*jshint globalstrict: true */
-/*global DygraphLayout:false, DygraphCanvasRenderer:false, G_vmlCanvasManager:false */
+/*global DygraphLayout:false, DygraphCanvasRenderer:false,
DygraphOptions:false,
G_vmlCanvasManager:false */
"use strict";
/**
"use strict";
/**
@@
-599,7
+599,8
@@
Dygraph.prototype.getOption = function(name, opt_seriesName) {
Dygraph.prototype.getOptionForAxis = function(name, axis) {
return this.attributes_.getForAxis(name, axis);
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')
@@
-2499,7
+2500,7
@@
Dygraph.prototype.computeYAxisRanges_ = function(extremes) {
var includeZero = this.attributes_.getForAxis("includeZero", i);
series = this.attributes_.seriesForAxis(i);
var includeZero = this.attributes_.getForAxis("includeZero", i);
series = this.attributes_.seriesForAxis(i);
- if (series.length == 0) {
+ if (series.length ==
=
0) {
// If no series are defined or visible then use a reasonable default
axis.extremeRange = [0, 1];
} else {
// If no series are defined or visible then use a reasonable default
axis.extremeRange = [0, 1];
} else {
@@
-2804,7
+2805,7
@@
Dygraph.prototype.setXAxisOptions_ = function(isDate) {
this.attrs_.axes.x.ticker = Dygraph.numericLinearTicks;
this.attrs_.axes.x.axisLabelFormatter = this.attrs_.axes.x.valueFormatter;
}
this.attrs_.axes.x.ticker = Dygraph.numericLinearTicks;
this.attrs_.axes.x.axisLabelFormatter = this.attrs_.axes.x.valueFormatter;
}
-}
+}
;
/**
* Parses the value as a floating point number. This is like the parseFloat()
/**
* Parses the value as a floating point number. This is like the parseFloat()