From: Robert Konigsberg Date: Sun, 25 Nov 2012 16:16:08 +0000 (-0500) Subject: Migrate multi-scale to use non-deprecated axis-specific formatters X-Git-Tag: v1.0.0~159^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=c63e32d094ae47d7414ffee8aa22022e50817e8b;p=dygraphs.git Migrate multi-scale to use non-deprecated axis-specific formatters --- diff --git a/tests/multi-scale.html b/tests/multi-scale.html index d328d94..6feaead 100644 --- 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; + } + } } } );