a778d772aa9eaf264e31f969c50cabc7bc96930f
[dygraphs.git] / tests / temperature-sf-ny.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="stylesheet" href="../css/dygraph.css">
5 <title>Temperatures</title>
6 <!--
7 For production (minified) code, use:
8 <script type="text/javascript" src="dygraph-combined.js"></script>
9 -->
10 <script type="text/javascript" src="../dist/dygraph.js"></script>
11
12 <script type="text/javascript" src="data.js"></script>
13 <style type="text/css">
14 #bordered {
15 border: 1px solid red;
16 }
17 .dygraph-legend {
18 text-align: right;
19 }
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',
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',
53 }
54 );
55 </script>
56 </body>
57 </html>