X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fcallback.html;h=64e97772f9ab8a48ace9d654b336fd4f1f68358f;hb=8b8f2d59d79021d19cf870f159aab2d8aee54fed;hp=a9658845b76148034ca1e17c65432107594d17fd;hpb=8bc236f9d1a0ed58cca121bd1d8875e230139584;p=dygraphs.git diff --git a/tests/callback.html b/tests/callback.html index a965884..64e9777 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,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 + "]
"; },