recharts customize issue - 如何调整图表值的位置
recharts customize issue - how to adjust the chart values position
我通过添加 outerRadius 在 recharts 中自定义 PieChartWithCustomizedLabel,但它导致的问题是图表内的值与它们的区域重叠(不正确地位于相关区域的一侧),我无法调整该图表内值的位置。我们如何调整此图表中值的位置?
Here is the picture of the chat
好的,您可以通过在 Recharts
的 PieChartWithCustomizedLabel 中更改 'radius' const 来更改您的 'value' 位置
const radius = innerRadius + (outerRadius - innerRadius) * 0.5;
第一次我也很难,怎么调整'value'位置
我通过添加 outerRadius 在 recharts 中自定义 PieChartWithCustomizedLabel,但它导致的问题是图表内的值与它们的区域重叠(不正确地位于相关区域的一侧),我无法调整该图表内值的位置。我们如何调整此图表中值的位置?
Here is the picture of the chat
好的,您可以通过在 Recharts
的 PieChartWithCustomizedLabel 中更改 'radius' const 来更改您的 'value' 位置const radius = innerRadius + (outerRadius - innerRadius) * 0.5;
第一次我也很难,怎么调整'value'位置