X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fcallback.html;h=484689aa64a5d78371568b872e0ea6d9e27d010e;hb=3c51ab748119e70ad44691d062a38c7e026158eb;hp=997e46455d6fa64ea3bd467d5db7f0aec79f97aa;hpb=bb66df31ffc04645f3227d81651574dd5d4561ae;p=dygraphs.git diff --git a/tests/callback.html b/tests/callback.html index 997e464..484689a 100644 --- a/tests/callback.html +++ b/tests/callback.html @@ -2,7 +2,7 @@ callbacks @@ -27,6 +27,7 @@ + @@ -65,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 + "]
"; },