border-style: solid;
border-color: black;
}
+
+/* CSS for resize */
+#workarea #resize #div_g {
+ /* The left and top are just guesses, this needs a proper run-through */
+ position: absolute;
+ left: 200px;
+ right: 10px;
+ top: 100px;
+ bottom: 10px;
+}
\ No newline at end of file
<script src="per-series.js"></script>
<script src="synchronize.js"></script>
<script src="range-selector.js"></script>
+ <script src="resize.js"></script>
<!-- These might not remain in the gallery -->
<script src="dygraph-simple.js"></script>
--- /dev/null
+Gallery.register(
+ 'resize',
+ {
+ name: 'Resizable Graph',
+ title: 'Resize the window. The dygraph will resize with it.',
+ setup: function(parent) {
+ parent.innerHTML = "<div id='div_g'>";
+ },
+ run: function() {
+ g = new Dygraph(
+ document.getElementById("div_g"),
+ NoisyData, {
+ rollPeriod: 7,
+ errorBars: true
+ }
+ );
+ }
+ });