Rebase (Straw broom) Plugin
[dygraphs.git] / tests / native-format.html
... / ...
CommitLineData
1<!DOCTYPE html>
2<html>
3 <head>
4 <title>Native Format</title>
5 <!--
6 For production (minified) code, use:
7 <script type="text/javascript" src="dygraph-combined.js"></script>
8 -->
9 <script type="text/javascript" src="../dygraph-dev.js"></script>
10
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>