Created
April 13, 2014 02:09
-
-
Save AlphaGit/10565907 to your computer and use it in GitHub Desktop.
Creating lines in d3.js
This file contains hidden or 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
svg.append('line') | |
.attr('x1', arrowOrigin.x) | |
.attr('y1', arrowOrigin.y) | |
.attr('x2', arrowDestiny.x) | |
.attr('y2', arrowDestiny.y) | |
.attr('stroke-width', 2) | |
.attr('stroke', 'black'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment