projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6fd1990
)
Small fixes from the last merge update.
author
Jeremy Brewer
<jeremy.d.brewer@gmail.com>
Fri, 18 Feb 2011 16:20:51 +0000
(11:20 -0500)
committer
Jeremy Brewer
<jeremy.d.brewer@gmail.com>
Fri, 18 Feb 2011 16:20:51 +0000
(11:20 -0500)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
3e32297
..
039c6ce
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-156,7
+156,7
@@
Dygraph.DEFAULT_ATTRS = {
yValueFormatter: function(x, opt_precision) {
var s = Dygraph.floatFormat(x, opt_precision);
var s2 = Dygraph.intFormat(x);
yValueFormatter: function(x, opt_precision) {
var s = Dygraph.floatFormat(x, opt_precision);
var s2 = Dygraph.intFormat(x);
- return s.length <
=
s2.length ? s : s2;
+ return s.length < s2.length ? s : s2;
},
strokeWidth: 1.0,
},
strokeWidth: 1.0,
@@
-2233,13
+2233,14
@@
Dygraph.numericTicks = function(minV, maxV, self, axis_props, vals) {
var n = k*k*k*k;
for (var j = 3; j >= 0; j--, n /= k) {
if (absTickV >= n) {
var n = k*k*k*k;
for (var j = 3; j >= 0; j--, n /= k) {
if (absTickV >= n) {
- label =
(tickV / n).toPrecision(
numDigits) + k_labels[j];
+ label =
formatter(tickV / n,
numDigits) + k_labels[j];
break;
}
}
break;
}
}
- ticks[i].label = label;
}
}
+ ticks[i].label = label;
}
}
+
return {ticks: ticks, numDigits: numDigits};
};
return {ticks: ticks, numDigits: numDigits};
};