我正在使用胜利原生图表来呈现饼图,但标题嵌套。这是我的代码:
<VictoryPie
animate={{
duration: 1000,
easing: 'bounce',
}}
labelPosition={({index}) => 'centroid'}
labels={({datum}) => datum.x}
width={width - 100}
labelComponent={<VictoryLabel textAnchor={'end'} angle={45} />}
theme={VictoryTheme.material}
data={categorySumSales}
/>
我的饼图: 在此处输入图像描述
这个饼图,我想要: 在此处输入图像描述