projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Follow-on to pull request 237, closurifying some code.
[dygraphs.git]
/
plugins
/
axes.js
diff --git
a/plugins/axes.js
b/plugins/axes.js
index
1e17ff2
..
f7865c8
100644
(file)
--- a/
plugins/axes.js
+++ b/
plugins/axes.js
@@
-225,7
+225,7
@@
axes.prototype.willDrawChart = function(e) {
var axisX;
if (g.getOption('drawAxesAtZero')) {
var r = g.toPercentXCoord(0);
- if (r > 1 || r < 0) r = 0;
+ if (r > 1 || r < 0
|| isNaN(r)
) r = 0;
axisX = halfUp(area.x + r * area.w);
} else {
axisX = halfUp(area.x);