X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Ftwo-axes-vr.html;h=b714b36e06926a7b273953525d4116e29149e22c;hb=401ff9f17c622f3173cc8d34cfcf3e444620d7d0;hp=12e8025379f9d786cbc0f9c8b8c530bb62103f9f;hpb=88a17b3f3b73348cfe2d986b01751814f7c8724b;p=dygraphs.git
diff --git a/tests/two-axes-vr.html b/tests/two-axes-vr.html
index 12e8025..b714b36 100644
--- a/tests/two-axes-vr.html
+++ b/tests/two-axes-vr.html
@@ -1,16 +1,12 @@
-
Multiple y-axes with valueRange
-
-
+
@@ -54,8 +50,7 @@
}
},
ylabel: 'Primary y-axis',
- y2label: 'Secondary y-axis',
- yAxisLabelWidth: 60
+ y2label: 'Secondary y-axis'
}
);
@@ -79,11 +74,15 @@
},
ylabel: 'Primary y-axis',
y2label: 'Secondary y-axis',
- yAxisLabelWidth: 60
+ axes: {
+ y: {
+ axisLabelWidth: 60
+ }
+ }
}
);
- g2 = new Dygraph(
+ g3 = new Dygraph(
document.getElementById("demodiv_two"),
data,
{
@@ -94,7 +93,8 @@
},
axes: {
y: {
- valueRange: [40, 80]
+ valueRange: [40, 80],
+ axisLabelWidth: 60
},
y2: {
// set axis-related properties here
@@ -103,8 +103,7 @@
}
},
ylabel: 'Primary y-axis',
- y2label: 'Secondary y-axis',
- yAxisLabelWidth: 60
+ y2label: 'Secondary y-axis'
}
);