X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftwo-axes.html;h=f652389be3ad2a108d1fd8a582d23f82e4703049;hb=2d0fdf6eb18eafde50830b8109f42e20b82247b1;hp=e3e29ffb4e3e55897ec311815b29b95dbf4f659a;hpb=75e2ab53cb9860deb0082b7bdf1bbb59eaafcc65;p=dygraphs.git
diff --git a/tests/two-axes.html b/tests/two-axes.html
index e3e29ff..f652389 100644
--- a/tests/two-axes.html
+++ b/tests/two-axes.html
@@ -1,16 +1,12 @@
-
Multiple y-axes
-
-
+
@@ -48,14 +44,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 +63,6 @@
},
ylabel: 'Primary y-axis',
y2label: 'Secondary y-axis',
- yAxisLabelWidth: 60
}
);