I have a choice of d3 on which I defined event callbacks.
var obj = d3.select("#kk").on("mouseleave",function(){ console.log("mouse leave"); });
How can I trigger an event from outside? There is something like:
obj.mouseleave(); // actuall mouse leave function calling
If there is, and if I select an object without a link to obj
, will the trigger fire?
How in:
var newObje=d3.select("#kk"); newObje.mouseleave();
source share