X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=gallery%2Favoid-min-zero.js;h=e74345fd7275f431d49c9b92aa4b08b707c74a75;hb=80be397c6428c0015c21f4a4ac96e222eb51f67e;hp=96a3cbcd353cf3285355588a8c9c0b7b875a931e;hpb=5a46df4c8041636edfb09702b43d62126c066911;p=dygraphs.git
diff --git a/gallery/avoid-min-zero.js b/gallery/avoid-min-zero.js
index 96a3cbc..e74345f 100644
--- a/gallery/avoid-min-zero.js
+++ b/gallery/avoid-min-zero.js
@@ -1,3 +1,4 @@
+/*global Gallery,Dygraph,data */
Gallery.register(
'avoid-min-zero',
{
@@ -10,7 +11,7 @@ Gallery.register(
"
4: Step chart with avoidMinZero
option:
";
},
run: function() {
- var g1 = new Dygraph(document.getElementById("graph1"),
+ new Dygraph(document.getElementById("graph1"),
"Date,Temperature\n" +
"2008-05-07,0\n" +
"2008-05-08,1\n" +
@@ -19,7 +20,7 @@ Gallery.register(
"2008-05-11,3\n" +
"2008-05-12,4\n"
);
- var g2 = new Dygraph(document.getElementById("graphd2"),
+ new Dygraph(document.getElementById("graphd2"),
"Date,Temperature\n" +
"2008-05-07,0\n" +
"2008-05-08,1\n" +
@@ -31,7 +32,7 @@ Gallery.register(
stepPlot: true
}
);
- var g3 = new Dygraph(document.getElementById("graph3"),
+ new Dygraph(document.getElementById("graph3"),
"Date,Temperature\n" +
"2008-05-07,0\n" +
"2008-05-08,1\n" +
@@ -43,7 +44,7 @@ Gallery.register(
avoidMinZero: true
}
);
- var g4 = new Dygraph(document.getElementById("graphd4"),
+ new Dygraph(document.getElementById("graphd4"),
"Date,Temperature\n" +
"2008-05-07,0\n" +
"2008-05-08,1\n" +