Merge branch 'master' of github.com:danvk/dygraphs
[dygraphs.git] / gallery / resize.js
CommitLineData
328d2cce
RK
1Gallery.register(
2 'resize',
3 {
4 name: 'Resizable Graph',
5 title: 'Resize the window. The dygraph will resize with it.',
6 setup: function(parent) {
7 parent.innerHTML = "<div id='div_g'>";
8 },
9 run: function() {
10 g = new Dygraph(
11 document.getElementById("div_g"),
12 NoisyData, {
13 rollPeriod: 7,
14 errorBars: true
15 }
16 );
17 }
18 });