4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
5 <title>Temperatures with Range Selector
</title>
7 <script type=
"text/javascript" src=
"../excanvas.js"></script>
10 For production (minified) code, use:
11 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
13 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
15 <script type=
"text/javascript" src=
"data.js"></script>
16 <style type=
"text/css">
18 border:
1px solid red;
23 <p>Demo of a graph with the range selector.
</p>
27 <div id=
"noroll" style=
"width:800px; height:320px;"></div>
29 Roll period of
14 timesteps, custom range selector height and plot color.
31 <div id=
"roll14" style=
"width:800px; height:320px;"></div>
33 Demo of range selecor without the chart. (interesting if multiple charts should be synced with one range selector).
35 <div id=
"nochart" style=
"width:800px; height:30px;"></div>
36 <script type=
"text/javascript">
38 document.getElementById(
"noroll"),
42 title: 'Daily Temperatures in New York vs. San Francisco',
43 ylabel: 'Temperature (F)',
45 labelsDivStyles: { 'textAlign': 'right' },
46 showRangeSelector: true
50 document.getElementById(
"roll14"),
56 title: 'Daily Temperatures in New York vs. San Francisco',
57 ylabel: 'Temperature (F)',
59 labelsDivStyles: { 'textAlign': 'right' },
61 showRangeSelector: true,
62 rangeSelectorHeight:
30,
63 rangeSelectorPlotStrokeColor: 'yellow',
64 rangeSelectorPlotFillColor: 'lightyellow'
68 document.getElementById(
"nochart"),
73 showRangeSelector: true,
74 rangeSelectorHeight:
30