fix issue #494 & expand xAxisLabelWidth; lots of failing tests
[dygraphs.git] / tests / two-axes-vr.html
index 0646b9a..161f298 100644 (file)
           {
             labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
             series : {
-              'Y3': {
-                axis: {
-                }
-              },
-              'Y4': {
-                axis: 'Y3'  // use the same y-axis as series Y3
-              }
+              'Y3': { axis: 'y2' },
+              'Y4': { axis: 'y2' }
             },
             valueRange: [40, 70],
             axes: {
@@ -59,8 +54,7 @@
               }
             },
             ylabel: 'Primary y-axis',
-            y2label: 'Secondary y-axis',
-            yAxisLabelWidth: 60
+            y2label: 'Secondary y-axis'
           }
       );
 
           {
             labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
             series : {
-              'Y3': {
-                axis: {
-                }
-              },
-              'Y4': {
-                axis: 'Y3'  // use the same y-axis as series Y3
-              }
+              'Y3': { axis: 'y2' },
+              'Y4': { axis: 'y2' }
             },
             axes: {
               y: {
           }
       );
 
-      g2 = new Dygraph(
+      g3 = new Dygraph(
           document.getElementById("demodiv_two"),
           data,
           {
             labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ],
             series : {
-              'Y3': {
-                axis: {
-                }
-              },
-              'Y4': {
-                axis: 'Y3'  // use the same y-axis as series Y3
-              }
+              'Y3': { axis: 'y2' },
+              'Y4': { axis: 'y2' }
             },
             axes: {
               y: {