X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Ftwo-axes.html;h=d1c876bd6b03463e88ff377d9602cca7c92720c9;hb=ccd9d7c2bf76882f57d29161fe69b0db53124f54;hp=e6b1b6d1a232e8fb9bbf42f5fba81db1582bd94d;hpb=2f5e7e1a7f5fd071b08ce92167fcab8863234075;p=dygraphs.git diff --git a/tests/two-axes.html b/tests/two-axes.html index e6b1b6d..d1c876b 100644 --- a/tests/two-axes.html +++ b/tests/two-axes.html @@ -1,13 +1,17 @@ + + Multiple y-axes - - - - + + +

Multiple y-axes

@@ -41,12 +45,16 @@ height: 350, 'Y3': { axis: { - // set axis-related properties here - labelsKMB: true } }, 'Y4': { axis: 'Y3' // use the same y-axis as series Y3 + }, + axes: { + y2: { + // set axis-related properties here + labelsKMB: true + } } } ); @@ -61,6 +69,13 @@ labelsKMB: true } ); + + function update(el) { + g.updateOptions( { fillGraph: el.checked } ); + g2.updateOptions( { fillGraph: el.checked } ); + } + +