When I try to draw a shape with svg, the corner looks like not sharp as expected! The header corner looks awesome, but the other two looks like not sharp!
I am using d3.js to draw it!
var width = 600
var height = 600
var svg = d3.select('body')
.append('svg')
.attr('width',width)
.attr('height',height)
//.style('border','1px solid red')
.attr('viewBox',`0 0 15 15`)
var g = svg.append('g')
.attr('fill','none')
.attr('stroke', 'red')
.attr('stroke-width',1)
var path = ['M',10,6,2,2,5,6,2,10,'z'].join(' ')
g.append('path')
.attr('d', path)
.attr('stroke', 'red')
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/6.7.0/d3.min.js"></script>