X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fmulti-scale.html;h=6feaead8003576132caa97a97a6a729dbebc3088;hb=69397a71569cfaa269720311dbd90caf7e57ea3b;hp=d328d946b37fed758e1a35ba4b00ede81d1400a7;hpb=d7153238af7b247a19b4152bd9cc8c2a0b05dc2b;p=dygraphs.git 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; + } + } } } );