1 /*global Gallery,Dygraph,data */
5 name
: "Avoid Min Zero",
6 setup
: function(parent
) {
8 "<p>1: Line chart with axis at zero problem:</p><div id='graph1'></div> " +
9 "<p>2: Step chart with axis at zero problem:</p><div id='graphd2'></div> " +
10 "<p>3: Line chart with <code>avoidMinZero</code> option:</p><div id='graph3'></div> " +
11 "<p>4: Step chart with <code>avoidMinZero</code> option:</p><div id='graphd4'></div> ";
14 new Dygraph(document
.getElementById("graph1"),
15 "Date,Temperature\n" +
23 new Dygraph(document
.getElementById("graphd2"),
24 "Date,Temperature\n" +
35 new Dygraph(document
.getElementById("graph3"),
36 "Date,Temperature\n" +
47 new Dygraph(document
.getElementById("graphd4"),
48 "Date,Temperature\n" +