Typescript bug fixing -- 2

Job ID: 35845117

Budget: $10 – $20 USD

I have a javascript d3 visual that I have converted to typescript. I seem to be getting an error in the following code block:

svg
.append("path")
.attr(
"d",
d3
.arc()
.innerRadius(35)
.outerRadius(40)
.startAngle(0)
.endAngle(2 * Math.PI)()
)
.style("fill", color[0])
.style("opacity", 1);

Here is the online demo / script: https://playcode.io/1108449

refer to lines 41to 46 and 56 to 61

Looking for someone who can help fix this within the online editor
Related categories: Typescript D3.js