css - SVG in D3--scaling across browsers -


instead of generic svg shapes, want bind external svg icons data d3. can this

group = svg.selectall("g")            .data(dataset)            .enter()            .append("g"); group.append("svg:image")      .attr("xlink:href",path)      .attr(...) 

etc run several scaling issues. this fiddle embeds exemplary icon. running in 3 different browsers, 3 different renderings. chrome best:

chrome

edge:

edge

firefox:

firefox

i've added viewport attribute, appears in various guides on how scale svgs, doesn't seem no matter coordinates set to. how can make scaling behave in chrome in browsers?


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -