Update index.html to mention the gallery
[dygraphs.git] / gallery / resize.js
1 Gallery.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 });