如图所示,以 0,0 为中心绘制的圆在 chrome 上正确显示,但在 IE10 上它溢出了 SVG 边界。我需要做什么才能让它在 IE 上正确呈现?
这是代码:
<body>
<div id="chart1">
</div>
<script>
var width = 50,height = 50;
var SVGmap = d3.select("#chart1")
.append("svg")
.attr("width", width)
.attr("height", height);
var g = SVGmap.append("g");
g.append("circle")
.style("stroke", "gray")
.style("fill", "red")
.attr("r", 40)
.attr("cx", 0)
.attr("cy", 0)
</script>
</body>