X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Ftemperature-sf-ny.js;h=f2c9ad1343eb87bdc0aa7f851a760579ff7a64a0;hb=401ff9f17c622f3173cc8d34cfcf3e444620d7d0;hp=8f43d1e7655219f1d085842747d08f6262fc2321;hpb=e14dc3feda3e6d429bb953dab83c593d851d90af;p=dygraphs.git diff --git a/gallery/temperature-sf-ny.js b/gallery/temperature-sf-ny.js index 8f43d1e..f2c9ad1 100644 --- a/gallery/temperature-sf-ny.js +++ b/gallery/temperature-sf-ny.js @@ -1,3 +1,5 @@ +/*global Gallery,Dygraph,data */ +/*global data_temp */ Gallery.register( // Get a better name. 'temperature-sf-ny', @@ -5,14 +7,15 @@ Gallery.register( name: 'Roll Periods and Error Bars', title: 'Demo of a graph with many data points and custom error bars.', setup: function(parent) { - parent.innerHTML = - "

Roll period of 14 timesteps.

" + - "
" + - "

No roll period.

" + - "
"; + parent.innerHTML = [ + "

Roll period of 14 timesteps.

", + "
", + "

No roll period.

", + "
"] + .join("\n"); }, run: function() { - g1 = new Dygraph( + new Dygraph( document.getElementById("noroll"), data_temp, { @@ -23,7 +26,7 @@ Gallery.register( labelsDivStyles: { 'textAlign': 'right' } } ); - g2 = new Dygraph( + new Dygraph( document.getElementById("roll14"), data_temp, { @@ -37,4 +40,4 @@ Gallery.register( } ); } - }); \ No newline at end of file + });