Tuesday, 6 August 2013

Is it possible to import svg shapes in d3.js?

Is it possible to import svg shapes in d3.js?

First day with d3.js, going well, but I need to change my placeholder
circle shapes to something a litte more complex.
Can SVG shapes that I've created in, say, Illustrator, be "imported" into
a d3.js chart?
I know I can redraw it in d3... but my head hurts right now... er...
it's a simple bubble with a point:
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="77px" height="41px" viewBox="0 0 77 41" enable-background="new 0 0
77 41" xml:space="preserve">
Can that be imported as a shape?
Or is there a way to translate that path directly in d3js?
Thanks!

No comments:

Post a Comment