projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7ec6c5
)
add comment explaining isFinite check
author
Dan Vanderkam
<danvdk@gmail.com>
Fri, 27 Sep 2013 13:32:27 +0000
(09:32 -0400)
committer
Dan Vanderkam
<danvdk@gmail.com>
Fri, 27 Sep 2013 13:32:27 +0000
(09:32 -0400)
dygraph-layout.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph-layout.js
b/dygraph-layout.js
index
c1c2bc4
..
78d8b19
100644
(file)
--- a/
dygraph-layout.js
+++ b/
dygraph-layout.js
@@
-214,7
+214,7
@@
DygraphLayout.prototype._evaluateLimits = function() {
DygraphLayout._calcYNormal = function(axis, value, logscale) {
if (logscale) {
var x = 1.0 - ((Dygraph.log10(value) - Dygraph.log10(axis.minyval)) * axis.ylogscale);
- return isFinite(x) ? x : NaN;
+ return isFinite(x) ? x : NaN;
// shim for v8 issue; see pull request 276
} else {
return 1.0 - ((value - axis.minyval) * axis.yscale);
}