X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fmulti-scale.html;h=45eb9890df86de894df6bc36f5b97ef1a70a0d2c;hb=f598f5e131cf7644fa168bfe49bded499d16363f;hp=b10cd934aeb24fe3dc13b9511b09bc0a5aba4ec9;hpb=48e614acf3084b9836803f8b014bf0e65f1ca119;p=dygraphs.git diff --git a/tests/multi-scale.html b/tests/multi-scale.html index b10cd93..45eb989 100644 --- a/tests/multi-scale.html +++ b/tests/multi-scale.html @@ -1,12 +1,14 @@ - + multi-scale - - + +

Gridlines and axis labels make charts easier to understand. They give @@ -71,10 +73,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; + } + } } } ); @@ -90,7 +96,11 @@ title: 'Four series on the same scale', xlabel: 'Date', ylabel: 'Count', - yAxisLabelWidth: 80 + axes: { + y: { + axisLabelWidth: 80 + } + } } );