react-native-gifted-charts
react-native-gifted-charts copied to clipboard
Nested Donut Chart
Hi, I am trying to create nested Piechart how can reduce/disable box size around the chart. any help is appreciated
<PieChart
donut
innerRadius={36}
radius={40}
data={outerPieData}
backgroundColor={backgroundColor}
centerLabelComponent={() => (
<PieChart
donut
extraRadiusForFocused
canvasWidth="0"
canvasHeight="0"
innerRadius={21}
radius={27}
showGradient
// paddingVertical={-10}
curvedStartEdges={true}
curvedEndEdges={true}
data={innerPieData}
backgroundColor={backgroundColor}
centerLabelComponent={() => (
<PieChart
donut
innerRadius={10}
radius={15}
data={innerinnerPieData}
backgroundColor={backgroundColor}
/>
)}
/>
)}
/>