X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fdygraph-simple.js;h=658c2c3cb739023cf75eafe64570fa24e059d595;hb=ac422b3aa23612c220b14e938fbae79d01b40b86;hp=dd6faa1e9767d235f0fffa84017baf1ebc493f25;hpb=5be52ac33ffa79ee2212158aaed71ec3ffb6736c;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]