d3.js - D3 mousedown triggers on load -
The mousetube and mouse load are being triggered and then not again. Any suggestion I am doing something wrong here is appreciated.
-------- mousecrazy.js ----------
yesClick = function () {warning ("always") ; } Var svgbox = d3.select ('body') .append ('svg') .attr ('width', 500) .attr ('height', 250) .on ("mousedown", yesClick ()) .on ("Mouseover", yesclic ());
-------- MousecrazyOm ----------
& lt; Html & gt; & Lt; Top & gt; & Lt; Script src = 'http: //d3js.org/d3.v3.min.js'> & Lt; / Script & gt; & Lt; Script src = "js / mousecrazy.js" & gt; & Lt; / Script & gt; & Lt; Title & gt; Mousecrazy & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Comments
Post a Comment