1 /*global Gallery,Dygraph,data */
6 name
: 'Range Selector',
7 title
: 'Demo of the Range Selector',
8 setup
: function(parent
) {
10 "<p>No roll period.</p>",
11 "<div id='noroll' style='width:600px; height:300px;'></div>",
13 "<p>Roll period of 14 timesteps, custom range selector height and plot color.</p>",
14 "<div id='roll14' style='width:600px; height:300px;'></div>"].join("\n");
18 document
.getElementById("noroll"),
22 title
: 'Daily Temperatures in New York vs. San Francisco',
23 ylabel
: 'Temperature (F)',
25 labelsDivStyles
: { 'textAlign': 'right' },
26 showRangeSelector
: true
30 document
.getElementById("roll14"),
36 title
: 'Daily Temperatures in New York vs. San Francisco',
37 ylabel
: 'Temperature (F)',
39 labelsDivStyles
: { 'textAlign': 'right' },
40 showRangeSelector
: true,
41 rangeSelectorHeight
: 30,
42 rangeSelectorPlotStrokeColor
: 'yellow',
43 rangeSelectorPlotFillColor
: 'lightyellow'