Migrate multi-scale to use non-deprecated axis-specific formatters
authorRobert Konigsberg <konigsberg@gmail.com>
Sun, 25 Nov 2012 16:16:08 +0000 (11:16 -0500)
committerRobert Konigsberg <konigsberg@gmail.com>
Sun, 25 Nov 2012 16:16:08 +0000 (11:16 -0500)
tests/multi-scale.html

index d328d94..6feaead 100644 (file)
                 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;
+                    }
+                  }
                 }
               }
           );