X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=tests%2Ftwo-axes.html;h=fd3f9d8b916ce5264808362d26953a4baba5e7bb;hb=0a31d41e94fae75808da6caa36e96fcdd40fd23f;hp=e3e29ffb4e3e55897ec311815b29b95dbf4f659a;hpb=7ad6c698d28d7d0f0770e1f6490f1a9649c64b6f;p=dygraphs.git
diff --git a/tests/two-axes.html b/tests/two-axes.html
index e3e29ff..fd3f9d8 100644
--- a/tests/two-axes.html
+++ b/tests/two-axes.html
@@ -1,16 +1,9 @@
-
+
Multiple y-axes
-
-
-
+
@@ -48,14 +41,18 @@
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: {
+ axisLabelWidth: 60
+ },
y2: {
// set axis-related properties here
labelsKMB: true
@@ -63,7 +60,6 @@
},
ylabel: 'Primary y-axis',
y2label: 'Secondary y-axis',
- yAxisLabelWidth: 60
}
);