I am new to SVG, so sorry if this is a bit of a noob question. I am trying to figure out how to get an image to display with the full width and height of the refere
SVG
d3.select("svg") .append("image") .attr("id", "myImage") .attr("xlink:href", "myImage.png") .on("load", function(d) { var myImage = new Image(); myImage.onload = function() { d3.select("#myImage") .attr("width", this.width) .attr("height", this.height); } myImage.src = "myImage.png"; });