BUGFIX: xAxisLabelHeight is set to 0 in case the option 'drawXAxis' is
[dygraphs.git] / tests / zero-series.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
5 <title>zero series</title>
6 <!--[if IE]>
7 <script type="text/javascript" src="../excanvas.js"></script>
8 <![endif]-->
9 <!--
10 For production (minified) code, use:
11 <script type="text/javascript" src="dygraph-combined.js"></script>
12 -->
13 <script type="text/javascript" src="../dygraph-dev.js"></script>
14
15 </head>
16 <body>
17 <p>Custom bars with a completely zero series. Both Y1 and Y2 should show.</p>
18
19 <div id="data" style="display:none">X,Y1,Y2
20 1,1;2;3,0;0;0
21 2,2;3;4,0;0;0
22 3,1;3;5,0;0;0
23 </div>
24
25 <div id="graphdiv" style="width:600px; height:300px;"></div>
26 <script type="text/javascript">
27 var g = new Dygraph(document.getElementById("graphdiv"),
28 document.getElementById("data").innerHTML,
29 {
30 customBars: true
31 });
32 </script>
33 </body>
34 </html>