X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=gallery%2Ftwo-axes.js;h=a93beed1a93da03d13435f52421deec74f663bfa;hb=3be75fa540ccf036bd41dfd3c75df5e7633f4863;hp=93247dfa0192054056fa702ed273cc90b8e0861d;hpb=c1f22b5a5d4ffbf25a75fc567232e65381c1938b;p=dygraphs.git diff --git a/gallery/two-axes.js b/gallery/two-axes.js index 93247df..a93beed 100644 --- a/gallery/two-axes.js +++ b/gallery/two-axes.js @@ -8,9 +8,14 @@ Gallery.register( "
" + "

A single y-axis:

" + "
" + - ""; + ""; }, run: function() { + document.getElementById('check') = function(el) { + g.updateOptions( { fillGraph: el.checked } ); + g2.updateOptions( { fillGraph: el.checked } ); + } + var data = []; for (var i = 1; i <= 100; i++) { var m = "01", d = i; @@ -60,10 +65,5 @@ Gallery.register( y2label: 'Secondary y-axis', } ); - - window.update = function(el) { - g.updateOptions( { fillGraph: el.checked } ); - g2.updateOptions( { fillGraph: el.checked } ); - } } });