Fix and regression test for fast proxy artifacts.
[dygraphs.git] / tests / native-format.html
CommitLineData
54425b14 1<!DOCTYPE html>
285a6bda
DV
2<html>
3 <head>
4 <title>Native Format</title>
7e5ddc94
DV
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
285a6bda
DV
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"),
d16579a0 29 [
285a6bda
DV
30 [1,10,100],
31 [2,20,80],
32 [3,50,60],
d16579a0 33 [4,70,80]
285a6bda
DV
34 ],
35 {
5011e7a1 36 labels: [ "x", "A", "B" ]
285a6bda
DV
37 });
38 </script>
39 </body>
40</html>