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