I'm trying to draw a circular graph with SVG in React Native. I want to add a stroke to the chart. How can I do it?
I did this.
This is what I want to do.
Code:
return (
<View style={{ height: 250, width: 250, backgroundColor: "green" }}>
<Svg viewBox="0 0 120 120">
<Circle
cx="60"
cy="60"
r="30"
fill="transparent"
stroke="red"
strokeWidth="60"
strokeDasharray={(2 * Math.PI * 30 * 75) / 100}
/>
</Svg>
</View>
);