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>",
16 "<div style='background-color: #101015; color: white'>",
17 "<p>Dark background, custom range selector gradient color.</p>",
18 "<div id='darkbg' style='width:600px; height:300px;'></div>",
23 document
.getElementById("noroll"),
27 title
: 'Daily Temperatures in New York vs. San Francisco',
28 ylabel
: 'Temperature (F)',
30 labelsDivStyles
: { 'textAlign': 'right' },
31 showRangeSelector
: true
35 document
.getElementById("roll14"),
41 title
: 'Daily Temperatures in New York vs. San Francisco',
42 ylabel
: 'Temperature (F)',
44 labelsDivStyles
: { 'textAlign': 'right' },
45 showRangeSelector
: true,
46 rangeSelectorHeight
: 30,
47 rangeSelectorPlotStrokeColor
: 'yellow',
48 rangeSelectorPlotFillColor
: 'lightyellow'
52 document
.getElementById("darkbg"),
58 title
: 'Nightly Temperatures in New York vs. San Francisco',
59 ylabel
: 'Temperature (F)',
61 labelsDivStyles
: { 'textAlign': 'right', 'backgroundColor': '#101015' },
62 showRangeSelector
: true,
63 rangeSelectorPlotFillColor
: 'MediumSlateBlue',
64 rangeSelectorPlotFillGradientColor
: 'rgba(123, 104, 238, 0)',
65 axisLabelColor
: 'white',