Skip to content

Instantly share code, notes, and snippets.

@alexlouden
Created April 5, 2014 09:53
Show Gist options
  • Save alexlouden/9989789 to your computer and use it in GitHub Desktop.
Save alexlouden/9989789 to your computer and use it in GitHub Desktop.
Use D3 to determine SVG path length
d3.select('#path4').node().getTotalLength()
@ahmadali7
Copy link

if we have class instead of id than how to get total length of all nodes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment