UNPKG

dygraphs

Version:

dygraphs is a fast, flexible open source JavaScript charting library.

40 lines (36 loc) 1.05 kB
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>resize the window</title> <link rel="stylesheet" type="text/css" href="../dist/dygraph.css" /> <link rel="stylesheet" type="text/css" href="../common/vextlnk.css" /> <script type="text/javascript" src="../dist/dygraph.js"></script> <script type="text/javascript" src="data.js"></script> <style type="text/css"> #div_g { position: absolute; left: 10px; right: 10px; top: 50px; bottom: 10px; } </style> </head> <body> <p>Resize the window. The dygraph will resize with it. This is distinct from the <tt>{ resizable: "both" }</tt> feature.</p> <div id="div_g"></div> <script type="text/javascript"><!--//--><![CDATA[//><!-- Dygraph.onDOMready(function onDOMready() { g = new Dygraph( document.getElementById("div_g"), NoisyData, { rollPeriod: 7, errorBars: true } ); }); //--><!]]></script> </body> </html>