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

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