http://bl.ocks.org/wboykinm/7388233
But the way I shoehorned the <defs> tag in is a total hack. What is the "D3 way" for appending this sort of thing using JavaScript? FWIW I tried .append and .appendChild with the defs as a string variable but that didn't work.
Thanks!
--
You received this message because you are subscribed to the Google Groups "d3-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to d3-js+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.