Commit | Line | Data |
---|---|---|
54425b14 | 1 | <!DOCTYPE html> |
8b91c51f DV |
2 | <html> |
3 | <head> | |
fd6b8dad | 4 | <link rel="stylesheet" href="../dist/dygraph.css"> |
8b91c51f | 5 | <title>zero series</title> |
fbd6834a | 6 | <script type="text/javascript" src="../dist/dygraph.js"></script> |
7e5ddc94 | 7 | |
8b91c51f DV |
8 | </head> |
9 | <body> | |
10 | <p>Custom bars with a completely zero series. Both Y1 and Y2 should show.</p> | |
11 | ||
12 | <div id="data" style="display:none">X,Y1,Y2 | |
13 | 1,1;2;3,0;0;0 | |
14 | 2,2;3;4,0;0;0 | |
15 | 3,1;3;5,0;0;0 | |
16 | </div> | |
17 | ||
18 | <div id="graphdiv" style="width:600px; height:300px;"></div> | |
19 | <script type="text/javascript"> | |
f6fbf9e0 | 20 | var g = new Dygraph(document.getElementById("graphdiv"), |
8b91c51f DV |
21 | document.getElementById("data").innerHTML, |
22 | { | |
23 | customBars: true | |
24 | }); | |
25 | </script> | |
26 | </body> | |
27 | </html> |