X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftwo-axes-vr.html;h=712578e6a5ee930a2c7c74c266e922a1dd9012e7;hb=fbd6834a9de994c68825a17fdaae2eaf514227ae;hp=5814435eca936cc23b97b15c056ad5204ab5ef07;hpb=2996a18eb00729b2624d8d75e8d24b056c5732bc;p=dygraphs.git diff --git a/tests/two-axes-vr.html b/tests/two-axes-vr.html index 5814435..712578e 100644 --- a/tests/two-axes-vr.html +++ b/tests/two-axes-vr.html @@ -1,16 +1,12 @@ - Multiple y-axes with valueRange - - + @@ -42,12 +38,9 @@ data, { labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ], - 'Y3': { - axis: { - } - }, - 'Y4': { - axis: 'Y3' // use the same y-axis as series Y3 + series : { + 'Y3': { axis: 'y2' }, + 'Y4': { axis: 'y2' } }, valueRange: [40, 70], axes: { @@ -57,8 +50,7 @@ } }, ylabel: 'Primary y-axis', - y2label: 'Secondary y-axis', - yAxisLabelWidth: 60 + y2label: 'Secondary y-axis' } ); @@ -67,12 +59,9 @@ data, { labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ], - 'Y3': { - axis: { - } - }, - 'Y4': { - axis: 'Y3' // use the same y-axis as series Y3 + series : { + 'Y3': { axis: 'y2' }, + 'Y4': { axis: 'y2' } }, axes: { y: { @@ -89,17 +78,14 @@ } ); - g2 = new Dygraph( + g3 = new Dygraph( document.getElementById("demodiv_two"), data, { labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ], - 'Y3': { - axis: { - } - }, - 'Y4': { - axis: 'Y3' // use the same y-axis as series Y3 + series : { + 'Y3': { axis: 'y2' }, + 'Y4': { axis: 'y2' } }, axes: { y: {