X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fcallback.html;h=484689aa64a5d78371568b872e0ea6d9e27d010e;hb=3c51ab748119e70ad44691d062a38c7e026158eb;hp=a9658845b76148034ca1e17c65432107594d17fd;hpb=8bc236f9d1a0ed58cca121bd1d8875e230139584;p=dygraphs.git diff --git a/tests/callback.html b/tests/callback.html index a965884..484689a 100644 --- a/tests/callback.html +++ b/tests/callback.html @@ -2,9 +2,10 @@ callbacks - + + @@ -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 + "]
"; },