X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=inline;f=gallery%2Favoid-min-zero.js;h=e74345fd7275f431d49c9b92aa4b08b707c74a75;hb=80be397c6428c0015c21f4a4ac96e222eb51f67e;hp=9d72980137ecbbd4a1322829f710ea1a87cd625a;hpb=436943f9fee49b1f892480f04f0dc4d5abc5fca0;p=dygraphs.git
diff --git a/gallery/avoid-min-zero.js b/gallery/avoid-min-zero.js
index 9d72980..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" +
@@ -18,8 +19,8 @@ Gallery.register(
"2008-05-10,0\n" +
"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" +
@@ -30,8 +31,8 @@ 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" +
@@ -42,8 +43,8 @@ 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" +
@@ -55,6 +56,6 @@ Gallery.register(
stepPlot: true,
avoidMinZero: true
}
- )
+ );
}
});