1 /*global Gallery,Dygraph,data */
6 name
: 'Range Selector',
7 title
: 'Demo of the Range Selector',
8 setup
: function(parent
) {
11 " #darkbg .dygraph-axis-label { color: white; }",
12 " .dygraph-legend { text-align: right; }",
13 " #darkbg .dygraph-legend { background-color: #101015; }",
15 "<p>No roll period.</p>",
16 "<div id='noroll' style='width:600px; height:300px;'></div>",
18 "<p>Roll period of 14 timesteps, custom range selector height and plot color.</p>",
19 "<div id='roll14' style='width:600px; height:300px;'></div>",
21 "<div style='background-color: #101015; color: white'>",
22 "<p>Dark background, custom range selector gradient color.</p>",
23 "<div id='darkbg' style='width:600px; height:300px;'></div>",
28 document
.getElementById("noroll"),
32 title
: 'Daily Temperatures in New York vs. San Francisco',
33 ylabel
: 'Temperature (F)',
35 showRangeSelector
: true
39 document
.getElementById("roll14"),
45 title
: 'Daily Temperatures in New York vs. San Francisco',
46 ylabel
: 'Temperature (F)',
48 showRangeSelector
: true,
49 rangeSelectorHeight
: 30,
50 rangeSelectorPlotStrokeColor
: 'yellow',
51 rangeSelectorPlotFillColor
: 'lightyellow'
55 document
.getElementById("darkbg"),
61 title
: 'Nightly Temperatures in New York vs. San Francisco',
62 ylabel
: 'Temperature (F)',
64 showRangeSelector
: true,
65 rangeSelectorPlotFillColor
: 'MediumSlateBlue',
66 rangeSelectorPlotFillGradientColor
: 'rgba(123, 104, 238, 0)',