X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fcallback.html;h=64e97772f9ab8a48ace9d654b336fd4f1f68358f;hb=8e48eef771ca7e1f4091845e6c690ad309c46fd8;hp=6b8f383d5e892bb46def7b50d0b1b91f976898fd;hpb=8d34158cad7690d8ba23c863eafe804ff66d94dd;p=dygraphs.git
diff --git a/tests/callback.html b/tests/callback.html
index 6b8f383..64e9777 100644
--- a/tests/callback.html
+++ b/tests/callback.html
@@ -4,7 +4,8 @@
-
+
+
@@ -26,6 +27,7 @@
+
@@ -64,10 +66,20 @@
}
},
+ unhighlightCallback: function(e) {
+ if (document.getElementById('unhighlight').checked) {
+ s.innerHTML += "Unhighlight
";
+ }
+ },
+
clickCallback: function(e, x, pts) {
s.innerHTML += "Click " + pts_info(e,x,pts) + "
";
},
+ pointClickCallback: function(e, p) {
+ s.innerHTML += "Point Click " + p.name + ": " + p.x + "
";
+ },
+
zoomCallback: function(minX, maxX) {
s.innerHTML += "Zoom [" + minX + ", " + maxX + "]
";
},