Open homlett opened 9 years ago
Stuck at the same point, You found any work around for this?
Nope :(
I made it work.
You need to use .style("fill", function(d) { return ("url(#"+d.id+"-icon)");})
instead of .attr("fill", function(d) { return ("url(#"+d.id+"-icon)");})
Wow, cool! Thanks, I'll try!
I'm trying to add a background image to nodes (svg:circle) with the pattern method mentionned here: https://groups.google.com/forum/#!topic/d3-js/1P5IphE319g or here http://stackoverflow.com/questions/19202450/adding-an-image-within-a-circle-object-in-d3-javascript
The DOM is OK, all seems alright, but no images. Someone can help me?
Here my code added to
CodeFlower.js
: