- for (var i = 0; i < 2; i++) {
- var line = document.createElement("div");
- line.style.display = "none";
- line.style.width = "100%";
- line.style.height = "1px";
- line.style.backgroundColor = "black";
- line.style.position = "absolute";
- document.getElementById("div_g").appendChild(line);
- lines.push(line);
- }
+ plugins: [
+ new Dygraph.Plugins.Crosshair({
+ direction: "horizontal"
+ })
+ ]
+ }
+ );
+ gb = new Dygraph(
+ document.getElementById("div_g_b"),
+ NoisyData, {
+ rollPeriod: 7,
+ showRoller: true,
+ errorBars: true,