fix color-visibility test
[dygraphs.git] / tests / native-format.html
1 <html>
2 <head>
3 <title>Native Format</title>
4 <!--[if IE]>
5 <script type="text/javascript" src="../excanvas.js"></script>
6 <![endif]-->
7 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
8 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
9 <script type="text/javascript" src="../dygraph-canvas.js"></script>
10 <script type="text/javascript" src="../dygraph.js"></script>
11 </head>
12 <body>
13 <p>These two charts should be indistinguishable:</p>
14 <!-- <div id="graphdiv"></div> -->
15 <div id="graphdiv"></div>
16 <script type="text/javascript">
17 g = new Dygraph(document.getElementById("graphdiv"),
18 "x,A,B\n" +
19 "1,10,100\n" +
20 "2,20,80\n" +
21 "3,50,60\n" +
22 "4,70,80\n");
23 </script>
24
25 <p>Same data, specified in a parsed format:</p>
26 <div id="graphdiv2"></div>
27 <script type="text/javascript">
28 g2 = new Dygraph(document.getElementById("graphdiv2"),
29 [
30 [1,10,100],
31 [2,20,80],
32 [3,50,60],
33 [4,70,80]
34 ],
35 {
36 labels: [ "x", "A", "B" ]
37 });
38 </script>
39 </body>
40 </html>