projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add fillGraph option to gadget
[dygraphs.git]
/
tests
/
crosshair.html
diff --git
a/tests/crosshair.html
b/tests/crosshair.html
index
4dbadc8
..
3d8a254
100644
(file)
--- a/
tests/crosshair.html
+++ b/
tests/crosshair.html
@@
-11,14
+11,14
@@
</head>
<body>
<p>Hover, click and zoom to test the callbacks:</p>
</head>
<body>
<p>Hover, click and zoom to test the callbacks:</p>
- <div id="g" style="width:600px; height:300px; position:relative;">
+ <div id="
div_
g" style="width:600px; height:300px; position:relative;">
</div>
<script type="text/javascript">
var lines = [];
var xline;
g = new Dygraph(
</div>
<script type="text/javascript">
var lines = [];
var xline;
g = new Dygraph(
- document.getElementById("g"),
+ document.getElementById("
div_
g"),
NoisyData, {
rollPeriod: 7,
showRoller: true,
NoisyData, {
rollPeriod: 7,
showRoller: true,
@@
-31,15
+31,7
@@
if (i == 0) xline.style.left = pts[i].canvasx + "px";
}
if (i == 0) xline.style.left = pts[i].canvasx + "px";
}
- },
-
- // clickCallback: function(e, x, pts) {
- // s.innerHTML += "<b>Click</b> " + pts_info(x,pts) + "<br/>";
- // },
-
- // zoomCallback: function(minX, maxX) {
- // s.innerHTML += "<b>Zoom</b> [" + minX + ", " + maxX + "]<br/>";
- // }
+ }
}
);
}
);
@@
-49,7
+41,7
@@
line.style.height = "1px";
line.style.backgroundColor = "black";
line.style.position = "absolute";
line.style.height = "1px";
line.style.backgroundColor = "black";
line.style.position = "absolute";
- document.getElementById("g").appendChild(line);
+ document.getElementById("
div_
g").appendChild(line);
lines.push(line);
}
lines.push(line);
}
@@
-59,7
+51,7
@@
xline.style.top = "0px";
xline.style.backgroundColor = "black";
xline.style.position = "absolute";
xline.style.top = "0px";
xline.style.backgroundColor = "black";
xline.style.position = "absolute";
- document.getElementById("g").appendChild(xline);
+ document.getElementById("
div_
g").appendChild(xline);
</script>
</body>
</html>
</script>
</body>
</html>