I'm using the solution proposed here How to add an image to an svg container using D3.js, like this
svg.selectAll()
.data(chart.data.values)
.enter()
.append('svg:image')
.attr('class', 'logo-legend')
.attr('x', function (d, i) {
return d.position;
}
)
.attr('y', 251)
.attr('xlink:href', function (d, i) {
return d.fileName;
});
Which works on Chrome, but it's not working on FF and Safari. I can see on firebug that the images are being created on the html, but they are just not showing. Any idea why?
I can see that on Chrome the element created is
<image class="logo-legend" x="46.5" y="251" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/services/logo.png"></image>
While on FF is
<image class="logo-legend" x="46.5" y="251" href="/img/services/logo.png">