X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Ftemperature-sf-ny.js;h=7e4131016135481d178c5ab15f562655f5e62d01;hb=9154f07d785b038e8af866da745a67f5ba531771;hp=d903b8b779c41cf326851a89f18e91c5bd197bcb;hpb=605b6119bcc80db4ea100d66df3483425dcd32af;p=dygraphs.git diff --git a/gallery/temperature-sf-ny.js b/gallery/temperature-sf-ny.js index d903b8b..7e41310 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', @@ -6,14 +8,15 @@ Gallery.register( 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.

", - "
"] + "
"] .join("\n"); }, run: function() { - g1 = new Dygraph( + new Dygraph( document.getElementById("noroll"), data_temp, { @@ -21,10 +24,9 @@ Gallery.register( title: 'Daily Temperatures in New York vs. San Francisco', ylabel: 'Temperature (F)', legend: 'always', - labelsDivStyles: { 'textAlign': 'right' } } ); - g2 = new Dygraph( + new Dygraph( document.getElementById("roll14"), data_temp, { @@ -34,8 +36,7 @@ Gallery.register( title: 'Daily Temperatures in New York vs. San Francisco', ylabel: 'Temperature (F)', legend: 'always', - labelsDivStyles: { 'textAlign': 'right' } } ); } - }); \ No newline at end of file + });