learner62
learner62

Reputation: 610

How can I achieve a somewhat similar graph?

Pie Chart

How can I achieve a similar graph? I am using victory-native.
Expo Link: https://snack.expo.io/@sushil62/animated-pie-chart

Upvotes: 0

Views: 1355

Answers (1)

Bhargav Tavethiya
Bhargav Tavethiya

Reputation: 172

You can set the similar pie charts by using the padAngle and innerRadius props to Victory pie like

<VictoryPie
  padAngle={5}
  innerRadius={50}
  data={sampleData}
/>

and regarding the lines between slices and labels

https://github.com/FormidableLabs/victory/issues/363

as discussed in this issue victory does not have such functionality as the time instead you can use legend box or tooltips to show the pie values of each pie.

Upvotes: 1

Related Questions