Bug fix for dygraph point selection touch event.
[dygraphs.git] / tests / native-format.html
CommitLineData
54425b14 1<!DOCTYPE html>
285a6bda
DV
2<html>
3 <head>
fd6b8dad 4 <link rel="stylesheet" href="../dist/dygraph.css">
285a6bda 5 <title>Native Format</title>
fbd6834a 6 <script type="text/javascript" src="../dist/dygraph.js"></script>
7e5ddc94 7
285a6bda
DV
8 </head>
9 <body>
10 <p>These two charts should be indistinguishable:</p>
11 <!-- <div id="graphdiv"></div> -->
12 <div id="graphdiv"></div>
13 <script type="text/javascript">
14 g = new Dygraph(document.getElementById("graphdiv"),
15 "x,A,B\n" +
16 "1,10,100\n" +
17 "2,20,80\n" +
18 "3,50,60\n" +
19 "4,70,80\n");
20 </script>
21
22 <p>Same data, specified in a parsed format:</p>
23 <div id="graphdiv2"></div>
24 <script type="text/javascript">
25 g2 = new Dygraph(document.getElementById("graphdiv2"),
d16579a0 26 [
fd6b8dad
DV
27 ['1', '10', '100'],
28 ['2', '20', '80'],
29 ['3', '50', '60'],
30 ['4', '70', '80']
285a6bda
DV
31 ],
32 {
5011e7a1 33 labels: [ "x", "A", "B" ]
285a6bda
DV
34 });
35 </script>
36 </body>
37</html>