There are already other resources which seem to work for some people, but in this case it doesn't work and I cannot figure out a workaround.
Similar resources:
I created a sandbox for it here
Suggestions to solve this, were the use of ResponsiveContainer component (provided by recharts), but that doesn't work as you can see in the sandbox.
Plus, the original example provided by recharts and viewable here doesn't work either (try changing the width and height on the jsFiddle example to 100vw and 100vh and then resize the window to 320px and you will see the text getting cropped).
Referring to the Github closed issues, it seems they were pointing out the problem on cx, cy, innerRadius and outerRadius attributes being set as px instead of percentages and that's what caused the issue, but the jsFiddle provided are not working and I cannot figure out how to achieve that with percentages.
Any helping input would be highly appreciated, thank you!