d3.js - SVG line rendered too thick in IE11 -


i trying draw 1px line , works in firefox, however, in ie11 no matter attributes tried seems produce line 2px thick.

it impractical set origin 0.5 unit. depends on width of stroke if it's odd number of units need add or subtract 0.5 if it's number don't. if add or subtract 0.5 indiscriminately end inconsistent line width based on stroke size , origin. shape-rendering:crispedges seems solve problem. looks problem due shape-rendering: crispedges property not being respected in ie.


Comments