D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
1wheel
Full window
Github gist
normal-line
Calculating the normal between two points
<!DOCTYPE html> <meta charset='utf-8'> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" type="text/css" href="style.css"> <body></body> <script src='d3v4.js'></script> <script src='script.js'></script>