gadfly361 / rid3

Reagent Interface to D3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I add a <defs> tag to the SVG?

ILoveHubGit opened this issue · comments

I would like to be able to add arrows heads to lines. The way this is normally done in SVG is by defining a in the tag and then use an attribute marker-start or marker-end with the line to add this arrow head.

Is this possible with this library?

@ILoveHubGit I no longer write clojurescript or use D3, so my memory is fuzzy at this point. Take this with a grain of salt, but I do anticipate you should be able to achieve that with rid3 though. Using an :elem piece, you should be able to set the tag and the attributes that you want.