projects
/
dygraphs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Document the value of `this`.
[dygraphs.git]
/
gallery
/
resize.js
1
/*global Gallery,Dygraph,data */
2
/*global NoisyData */
3
Gallery
.
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
() {
12
new
Dygraph
(
13
document
.
getElementById
(
"div_g"
),
14
NoisyData
, {
15
rollPeriod
:
7
,
16
errorBars
:
true
17
}
18
);
19
}
20
});