Commit | Line | Data |
---|---|---|
bcc657d8 AR |
1 | <!DOCTYPE html> |
2 | <html> | |
3 | <head> | |
93a5bb4c | 4 | <link rel="stylesheet" href="../css/dygraph.css"> |
bcc657d8 | 5 | <title>Temperatures</title> |
bcc657d8 AR |
6 | <!-- |
7 | For production (minified) code, use: | |
8 | <script type="text/javascript" src="dygraph-combined.js"></script> | |
9 | --> | |
fbd6834a | 10 | <script type="text/javascript" src="../dist/dygraph.js"></script> |
bcc657d8 AR |
11 | |
12 | <script type="text/javascript" src="data.js"></script> | |
13 | <style type="text/css"> | |
14 | #bordered { | |
15 | border: 1px solid red; | |
16 | } | |
93a5bb4c DV |
17 | .dygraph-legend { |
18 | text-align: right; | |
19 | } | |
bcc657d8 AR |
20 | </style> |
21 | </head> | |
22 | <body> | |
23 | <p>Demo of a graph with many data points and custom error bars.</p> | |
24 | <p> | |
25 | No roll period. | |
26 | </p> | |
27 | <div id="noroll" style="width:800px; height:320px;"></div> | |
28 | <p> | |
29 | Roll period of 14 timesteps. | |
30 | </p> | |
31 | <div id="roll14" style="width:800px; height:320px;"></div> | |
32 | <script type="text/javascript"> | |
33 | g1 = new Dygraph( | |
34 | document.getElementById("noroll"), | |
35 | data_temp, | |
36 | { | |
37 | customBars: true, | |
38 | title: 'Daily Temperatures in New York vs. San Francisco', | |
39 | ylabel: 'Temperature (F)', | |
40 | legend: 'always', | |
bcc657d8 AR |
41 | } |
42 | ); | |
43 | g2 = new Dygraph( | |
44 | document.getElementById("roll14"), | |
45 | data_temp, | |
46 | { | |
47 | rollPeriod: 14, | |
48 | showRoller: true, | |
49 | customBars: true, | |
50 | title: 'Daily Temperatures in New York vs. San Francisco', | |
51 | ylabel: 'Temperature (F)', | |
52 | legend: 'always', | |
bcc657d8 AR |
53 | } |
54 | ); | |
55 | </script> | |
56 | </body> | |
57 | </html> |