projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f112135
)
Migrate multi-scale to use non-deprecated axis-specific formatters
author
Robert Konigsberg
<konigsberg@gmail.com>
Sun, 25 Nov 2012 16:16:08 +0000
(11:16 -0500)
committer
Robert Konigsberg
<konigsberg@gmail.com>
Sun, 25 Nov 2012 16:16:08 +0000
(11:16 -0500)
tests/multi-scale.html
patch
|
blob
|
blame
|
history
diff --git
a/tests/multi-scale.html
b/tests/multi-scale.html
index
d328d94
..
6feaead
100644
(file)
--- a/
tests/multi-scale.html
+++ b/
tests/multi-scale.html
@@
-76,10
+76,14
@@
title: 'Four series on different scales',
xlabel: 'Date',
ylabel: 'Count',
- yValueFormatter: function(y, opts, series_name) {
- var unscaled = y * scales[series_name];
- if (series_name == 'sine wave') return unscaled.toPrecision(4);
- return unscaled;
+ axes : {
+ y : {
+ valueFormatter: function(y, opts, series_name) {
+ var unscaled = y * scales[series_name];
+ if (series_name == 'sine wave') return unscaled.toPrecision(4);
+ return unscaled;
+ }
+ }
}
}
);