question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pie chart label not working with 'isAnimationActive=true'

See original GitHub issue

Do 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
LoicSalariscommented, Oct 29, 2019

Hi, got the same bug here when isAnimationActive is at true, label don’t work, or randomly in 1.8.5

0reactions
johhnrycommented, Mar 2, 2021

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)

ezgif-2-ecf775ba92af

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found