X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=gallery%2Frange-selector.js;h=3b13ebb20f3ff01092df61c53ad687fef9cb00eb;hb=80be397c6428c0015c21f4a4ac96e222eb51f67e;hp=4d9a82ad897c5ff244b59ee41ef4ada9837b2884;hpb=72c8bf9993215da78476fa918af09e12b297a34c;p=dygraphs.git diff --git a/gallery/range-selector.js b/gallery/range-selector.js index 4d9a82a..3b13ebb 100644 --- a/gallery/range-selector.js +++ b/gallery/range-selector.js @@ -1,17 +1,20 @@ +/*global Gallery,Dygraph,data */ +/*global data_temp */ Gallery.register( 'range-selector', { name: 'Range Selector', title: 'Demo of the Range Selector', setup: function(parent) { - parent.innerHTML = - "
No roll period.
" + - "" + - "Roll period of 14 timesteps, custom range selector height and plot color.
" + - ""; + parent.innerHTML = [ + "No roll period.
", + "", + "", + "Roll period of 14 timesteps, custom range selector height and plot color.
", + ""].join("\n"); }, run: function() { - g1 = new Dygraph( + new Dygraph( document.getElementById("noroll"), data_temp, { @@ -23,7 +26,7 @@ Gallery.register( showRangeSelector: true } ); - g2 = new Dygraph( + new Dygraph( document.getElementById("roll14"), data_temp, {