I'm trying to find a way to have an image inside a circle in D3 and a text next to it.
I'm using force directed graph if it makes any difference.
So far i can find only partial solutions (only image, only text, only circle), but non that combines them all.
Any idea?
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With