I am working on a d3.js force diagram application. I am curious to know how I would go about replacing the central blue circle with an image. Have an image url populate the background of the circle - so have a circular picture?
so instead of fill - would it be possible to use just a background url?
var circle = svg.append("svg:g").selectAll("circle").data(force.nodes()).enter().append("svg:circle").attr("r", function(d) {
return getRadius(d);
}).style("fill", function(d) {
return color(d.group);
}).call(force.drag);