SyntaxFix
Write A Post
Hire A Developer
Questions
In SVG (contrasted with HTML), you will want to use <image> instead of <img> for elements.
<image>
<img>
Try changing your last block with:
var imgs = svg.selectAll("image").data([0]); imgs.enter() .append("svg:image") ...