projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added test fot reversing and made some cleanup
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
7453c30
..
5a805f5
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1380,9
+1380,8
@@
Dygraph.numericTicks = function(minV, maxV, self) {
k_labels = [ "k", "M", "G", "T" ];
}
k_labels = [ "k", "M", "G", "T" ];
}
- // Allowing reverce valueRange
- if (low_val > high_val)
- scale *= -1;
+ // Allowing reverse valueRange
+ if (low_val > high_val) scale *= -1;
for (var i = 0; i < nTicks; i++) {
var tickV = low_val + i * scale;
for (var i = 0; i < nTicks; i++) {
var tickV = low_val + i * scale;