projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Options code review, plus, remove original attr_ code.
[dygraphs.git]
/
tests
/
callback.html
diff --git
a/tests/callback.html
b/tests/callback.html
index
484689a
..
822aa68
100644
(file)
--- a/
tests/callback.html
+++ b/
tests/callback.html
@@
-1,13
+1,17
@@
+<!DOCTYPE html>
<html>
<head>
<html>
<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
<title>callbacks</title>
<!--[if IE]>
<script type="text/javascript" src="../excanvas.js"></script>
<![endif]-->
<title>callbacks</title>
<!--[if IE]>
<script type="text/javascript" src="../excanvas.js"></script>
<![endif]-->
- <script type="text/javascript" src="../strftime/strftime-min.js"></script>
- <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
- <script type="text/javascript" src="../dygraph-canvas.js"></script>
- <script type="text/javascript" src="../dygraph.js"></script>
+ <!--
+ For production (minified) code, use:
+ <script type="text/javascript" src="dygraph-combined.js"></script>
+ -->
+ <script type="text/javascript" src="../dygraph-dev.js"></script>
+
<script type="text/javascript" src="data.js"></script>
<style type="text/css">
#div_g {
<script type="text/javascript" src="data.js"></script>
<style type="text/css">
#div_g {
@@
-36,7
+40,7
@@
<script type="text/javascript">
s = document.getElementById("status");
g = null;
<script type="text/javascript">
s = document.getElementById("status");
g = null;
- pts_info = function(e, x, pts) {
+ pts_info = function(e, x, pts
, row
) {
var str = "(" + x + ") ";
for (var i = 0; i < pts.length; i++) {
var p = pts[i];
var str = "(" + x + ") ";
for (var i = 0; i < pts.length; i++) {
var p = pts[i];
@@
-49,6
+53,7
@@
var dataXY = g.toDataCoords(x, y);
str += ", (" + x + ", " + y + ")";
str += " -> (" + dataXY[0] + ", " + dataXY[1] + ")";
var dataXY = g.toDataCoords(x, y);
str += ", (" + x + ", " + y + ")";
str += " -> (" + dataXY[0] + ", " + dataXY[1] + ")";
+ str += ", row #"+row;
return str;
};
return str;
};
@@
-60,9
+65,9
@@
showRoller: true,
errorBars: true,
showRoller: true,
errorBars: true,
- highlightCallback: function(e, x, pts) {
+ highlightCallback: function(e, x, pts
, row
) {
if (document.getElementById('highlight').checked) {
if (document.getElementById('highlight').checked) {
- s.innerHTML += "<b>Highlight</b> " + pts_info(e,x,pts) + "<br/>";
+ s.innerHTML += "<b>Highlight</b> " + pts_info(e,x,pts
,row
) + "<br/>";
}
},
}
},
@@
-80,8
+85,8
@@
s.innerHTML += "<b>Point Click</b> " + p.name + ": " + p.x + "<br/>";
},
s.innerHTML += "<b>Point Click</b> " + p.name + ": " + p.x + "<br/>";
},
- zoomCallback: function(minX, maxX) {
- s.innerHTML += "<b>Zoom</b> [" + minX + ", " + maxX + "]<br/>";
+ zoomCallback: function(minX, maxX
, yRanges
) {
+ s.innerHTML += "<b>Zoom</b> [" + minX + ", " + maxX + "
, [" + yRanges + "]
]<br/>";
},
drawCallback: function(g) {
},
drawCallback: function(g) {