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