X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Finteraction.html;h=332e4d3eaef8e872ed743b7039e56b27d33a35c6;hb=77a1405a7dea7e9de770583598a50e5907e6b1a1;hp=adfc8051e50fb2a22d0016b4421625df54fb4fe5;hpb=54425b14df388e9337a1d77876512bb60ba74c3b;p=dygraphs.git diff --git a/tests/interaction.html b/tests/interaction.html index adfc805..332e4d3 100644 --- a/tests/interaction.html +++ b/tests/interaction.html @@ -2,13 +2,12 @@ interaction model - - - - - + + + @@ -22,7 +21,9 @@ No interaction model
- Click and drag all you like, it won't do anything! + Click and drag all you like, it won't do anything! +
+ Custom interaction model @@ -50,8 +51,13 @@ Dygraph.addEvent(document, "click", function() { lastClickedGraph = null; }); var g = new Dygraph(document.getElementById("div_g"), NoisyData, { errorBars : true }); + var s = document.getElementById("g2_console"); var g2 = new Dygraph(document.getElementById("div_g2"), - NoisyData, { errorBars : true, interactionModel : {} }); + NoisyData, + { + errorBars : true, + interactionModel: {} + }); var g3 = new Dygraph(document.getElementById("div_g3"), NoisyData, { errorBars : true, interactionModel : { 'mousedown' : downV3,