I am making an animated SVG pie chart. Basically, I have two SVG elements, the first gets a border-radius of 50% , the second a circle, which I fill up to a certain value. In the end, it makes one circle over another circle, both of them are the same size.
There is some kind of SVG smoothing that is hard to get rid of. It is very noticeable in the upper, left, lower and right "corners" of the circle, at least in Google Chrome.
Here is the HTML part
<figure id="pie" data-percentage="60"> <div class="receiver"></div> <svg width="200" height="200" class="chart" shape-rendering="geometricPrecision"> <circle r="50" cx="100" cy="100" class="pie" shape-rendering="geometricPrecision"/> </svg> </figure>
Below is the codepen for a more accurate description of the problem. I tried various solutions, including the SVG attribute to render the form, but to no avail.
Here is a screenshot, the overlay is not as noticeable as in codefen (at least for me)

javascript jquery html css svg
Antonin Cezard
source share