fixing issue with xRangePad being ignored on unzoom, with auto_test.
[dygraphs.git] / gallery / resize.js
CommitLineData
e88a95b4
DV
1/*global Gallery,Dygraph,data */
2/*global NoisyData */
328d2cce
RK
3Gallery.register(
4 'resize',
5 {
6 name: 'Resizable Graph',
7 title: 'Resize the window. The dygraph will resize with it.',
8 setup: function(parent) {
9 parent.innerHTML = "<div id='div_g'>";
10 },
11 run: function() {
e88a95b4 12 new Dygraph(
328d2cce
RK
13 document.getElementById("div_g"),
14 NoisyData, {
15 rollPeriod: 7,
16 errorBars: true
17 }
18 );
19 }
20 });