X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=gallery%2Frange-selector.js;h=3b13ebb20f3ff01092df61c53ad687fef9cb00eb;hb=80be397c6428c0015c21f4a4ac96e222eb51f67e;hp=57ac71b8003d6bee800ffeebd87510124799d40e;hpb=605b6119bcc80db4ea100d66df3483425dcd32af;p=dygraphs.git diff --git a/gallery/range-selector.js b/gallery/range-selector.js index 57ac71b..3b13ebb 100644 --- a/gallery/range-selector.js +++ b/gallery/range-selector.js @@ -1,3 +1,5 @@ +/*global Gallery,Dygraph,data */ +/*global data_temp */ Gallery.register( 'range-selector', { @@ -6,13 +8,13 @@ Gallery.register( setup: function(parent) { parent.innerHTML = [ "
No roll period.
", - "", + "", "", "Roll period of 14 timesteps, custom range selector height and plot color.
", - ""].join("\n"); + ""].join("\n"); }, run: function() { - g1 = new Dygraph( + new Dygraph( document.getElementById("noroll"), data_temp, { @@ -24,7 +26,7 @@ Gallery.register( showRangeSelector: true } ); - g2 = new Dygraph( + new Dygraph( document.getElementById("roll14"), data_temp, {