right: 10px;
top: 10px;
height: 250px;
+ border: 1px solid black;
}
</style>
</head>
<div id="div_g"></div>
<script type="text/javascript">
- g = new Dygraph(
- document.getElementById("div_g"),
- NoisyData, {
- rollPeriod: 7,
- errorBars: true
- }
- );
+ document.getElementById("div_g").addEventListener('resize', function() {
+ console.log("resize!");
+ }, false);
+ document.getElementById("div_g").onresize = function() {
+ console.log("resize2!");
+ };
+ //g = new Dygraph(
+ // document.getElementById("div_g"),
+ // NoisyData, {
+ // rollPeriod: 7,
+ // errorBars: true
+ // }
+ // );
// window.onresize = function() {
// g.resize();