Add image inside circle D3

I am trying to find a way to have an image inside a circle in D3 and text next to it.

I use a power graph if it has any meaning.

So far I can find only partial solutions (only image, only text, only circle), but not uniting them all.

Any idea?

+4
source share
1 answer

Can this example help? http://bl.ocks.org/mbostock/950642

The related code is here:

node.append("image")
      .attr("xlink:href", "https://github.com/favicon.ico")
      .attr("x", -8)
      .attr("y", -8)
      .attr("width", 16)
      .attr("height", 16);
+2
source

All Articles