X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fcallback.html;h=5a084092d1170a1caee42569ea8ba74615cbb269;hb=85abed306e1853a404892004d235249e4af4ddd2;hp=a9658845b76148034ca1e17c65432107594d17fd;hpb=8bc236f9d1a0ed58cca121bd1d8875e230139584;p=dygraphs.git diff --git a/tests/callback.html b/tests/callback.html index a965884..5a08409 100644 --- a/tests/callback.html +++ b/tests/callback.html @@ -4,7 +4,8 @@ - + + @@ -26,6 +27,7 @@ + @@ -57,7 +59,6 @@ rollPeriod: 7, showRoller: true, errorBars: true, - showLabelsOnHighlight: true, highlightCallback: function(e, x, pts) { if (document.getElementById('highlight').checked) { @@ -65,6 +66,12 @@ } }, + unhighlightCallback: function(e) { + if (document.getElementById('unhighlight').checked) { + s.innerHTML += "Unhighlight
"; + } + }, + clickCallback: function(e, x, pts) { s.innerHTML += "Click " + pts_info(e,x,pts) + "
"; },