<input type="button" value="Add Annotation" onclick="add()" />
<input type="button" value="Shove to bottom" onclick="bottom(this)" />
<div id="events"> </div>
- <div style="position:absolute; left:200px; top: 200px;" id="g"></div>
+ <div style="position:absolute; left:200px; top: 200px;" id="g_div"></div>
<div style="position:absolute; left:700px; top: 200px;" id="list"></div>
<script type="text/javascript">
}
g = new Dygraph(
- document.getElementById("g"),
+ document.getElementById("g_div"),
function() {
var zp = function(x) { if (x < 10) return "0"+x; else return x; };
var r = "date,parabola,line,another line,sine wave\n";
html += ann[i].text + "</span><br/>";
}
document.getElementById("list").innerHTML = html;
- },
+ }
}
);