Created
December 23, 2016 02:32
-
-
Save khoazany/565188fcf3ae4c2601e58084ff1a2bdd to your computer and use it in GitHub Desktop.
Log Out Mouse Position When Cliked On SVG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Write directly on console, don't put on js code | |
svg.on('mousemove', function () { | |
x = d3.mouse(this)[0]; | |
y = d3.mouse(this)[1]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment