X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Ftwo-axes.js;h=a93beed1a93da03d13435f52421deec74f663bfa;hb=f93af875f34cdc7ed523f2545103ef6d6f4a1891;hp=93247dfa0192054056fa702ed273cc90b8e0861d;hpb=795b16307db2a673ba7aa3452f6f6b0e93baeb3a;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 } ); - } } });