X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=gallery%2Fdygraph-simple.js;h=658c2c3cb739023cf75eafe64570fa24e059d595;hb=80be397c6428c0015c21f4a4ac96e222eb51f67e;hp=dd6faa1e9767d235f0fffa84017baf1ebc493f25;hpb=795b16307db2a673ba7aa3452f6f6b0e93baeb3a;p=dygraphs.git diff --git a/gallery/dygraph-simple.js b/gallery/dygraph-simple.js index dd6faa1..658c2c3 100644 --- a/gallery/dygraph-simple.js +++ b/gallery/dygraph-simple.js @@ -1,3 +1,4 @@ +/*global Gallery,Dygraph,data */ Gallery.register( 'dygraph-simple', { @@ -7,12 +8,12 @@ Gallery.register( "
Same data, specified in a parsed format:
"; }, run: function() { - g = new Dygraph(document.getElementById("graphdiv"), + new Dygraph(document.getElementById("graphdiv"), "Date,Temperature\n" + "2008-05-07,75\n" + "2008-05-08,70\n" + "2008-05-09,80\n"); - g2 = new Dygraph(document.getElementById("graphdiv2"), + new Dygraph(document.getElementById("graphdiv2"), [ [ new Date("2008/05/07"), 75], [ new Date("2008/05/08"), 70], [ new Date("2008/05/09"), 80]