X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fmulti-scale.html;h=6feaead8003576132caa97a97a6a729dbebc3088;hb=7e94880fd6da29b781d18f2b7969303bd3b1b0d8;hp=b10cd934aeb24fe3dc13b9511b09bc0a5aba4ec9;hpb=48e614acf3084b9836803f8b014bf0e65f1ca119;p=dygraphs.git diff --git a/tests/multi-scale.html b/tests/multi-scale.html index b10cd93..6feaead 100644 --- a/tests/multi-scale.html +++ b/tests/multi-scale.html @@ -7,6 +7,11 @@ +
Gridlines and axis labels make charts easier to understand. They give @@ -71,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; + } + } } } );