projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7db3d60
)
Remove superfluous warning when specifying labelsKMG2.
author
Robert Konigsberg
<konigsberg@gmail.com>
Sat, 8 Dec 2012 23:32:19 +0000
(18:32 -0500)
committer
Robert Konigsberg
<konigsberg@gmail.com>
Sat, 8 Dec 2012 23:32:19 +0000
(18:32 -0500)
dygraph-tickers.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph-tickers.js
b/dygraph-tickers.js
index
fa8d342
..
b340626
100644
(file)
--- a/
dygraph-tickers.js
+++ b/
dygraph-tickers.js
@@
-193,7
+193,7
@@
Dygraph.numericTicks = function(a, b, pixels, opts, dygraph, vals) {
}
// Add formatted labels to the ticks.
- var k
= 1
;
+ var k;
var k_labels = [];
var m_labels = [];
if (opts("labelsKMB")) {
@@
-207,6
+207,8
@@
Dygraph.numericTicks = function(a, b, pixels, opts, dygraph, vals) {
m_labels = [ "m", "u", "n", "p", "f", "a", "z", "y" ];
}
+ k = k || 1; // If neither option is specified.
+
var formatter = /**@type{AxisLabelFormatter}*/(opts('axisLabelFormatter'));
// Add labels to the ticks.