Pie chart label not working with 'isAnimationActive=true'
See original GitHub issueDo you want to request a feature or report a bug?
Bug
What is the current behavior?
Pie chart label not working when isAnimationActive=true
If the current behavior is a bug, please provide the steps to reproduce.
<ResponsiveContainer width={width} height={height}> <PieChart> <Pie data={data} dataKey="value" cx={width / 2} cy={height / 2.6} outerRadius={80} fill={primary20} startAngle={90} endAngle={450} stroke={0} label> {data.map((entry, index) => ( <Cell key={
cell-${index}} fill={chartColors[index % chartColors.length]} /> ))} </Pie> <Tooltip /> </PieChart> </ResponsiveContainer>
What is the expected behavior?
show label when ssr
Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?
“recharts”: “^1.7.1”,
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Label text of pie chart not appearing - Stack Overflow
The labels on my pie chart are not visible, whatever I try (resetting radius, changing text color). The pie chart itself is visible....
Read more >Re: why are some data labels not showing in pie ch...
hi i have the pie chart as shown below and i see th values of categories which are minimal are shown in the...
Read more >Change the format of data labels in a chart - Microsoft Support
You can format the labels to show specific labels elements like, the percentages, series name, or category name. Pie chart with data labels...
Read more >How to display full label for pie chart? - ServiceNow Community
Hi,. You can stop the truncation of labels by setting the following system property to false glide.chart.truncate.data_labels.
Read more >Pie chart reference - Looker Studio Help - Google Support
In this article: Pie charts in Looker Studio; Data properties; Style properties; Related resources ... Example pie charts showing page views by source ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, got the same bug here when isAnimationActive is at true, label don’t work, or randomly in 1.8.5
Same issue here with
recharts@2.0.8
, when animating a Pie chart with labels they disappear when the cells are animated.Is there a way to animate the labels and smoothly interpolate the values ? (in percent in this case)