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.

Labels shomtimes not show

See original GitHub issue

Do you want to request a feature or report a bug?

bug

What is the current behavior?

Some times i dont see label

2017-08-11 15-25-51 2017-08-11 15-26-13

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: http://jsfiddle.net/qbmg1567/).

const _dataTypesMap = {
    "0": () => <Bar dataKey="clientQuestions" fill="#6aafff" minPointSize={1} />,
    "1": () => <Bar dataKey="arPercent" fill="#b8e986" minPointSize={1} label={{ fill: 'red', fontSize: 20, dataKey: "nps" }}/>,
    "2": () => <Bar dataKey="awsPercent" fill="#f16c97" minPointSize={1} />
};

const _getCharts = (dataTypes) => {
    return dataTypes.map(t => _dataTypesMap[t]())
};

const DashboardChart = ({ stats, dataTypes }) => {
  return (
      <BarChart width={1008} height={200} data={stats}
          margin={{ top: 5, right: 5, left: 5, bottom: 5 }}>
          <Tooltip content={<_Tooltip/>} payload={stats}/>
          { _getCharts(dataTypes) }
      </BarChart>
  )
};

What is the expected behavior?

I want see all times label

Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?

rechart - 1.0.0-alpha.1 OS Ubuntu 16.04 - 64x Browser Firefox 56.0b1 (64-бит)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:12
  • Comments:43 (1 by maintainers)

github_iconTop GitHub Comments

19reactions
silentbobbertcommented, Jan 12, 2018

I am still using

isAnimationActive={false}

Which allows my labels to be rendered. I left myself this comment:

//should be able to remove this prop, I think there is a bug in Pie stopping labels from rendering. This is a temp fix.

So it looks like I made a note of the issue, and moved onto something else!

10reactions
hmtri1011commented, Aug 19, 2020

it still persists on v1.8.5, not sure why it was closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Label list is not showing in recharts?
I have created a bar chart using rechart. There I am using labelList component inside my bar chart. But It is not showing...
Read more >
The Menu (2022) - Tickets & Showtimes Near You
A couple (Anya Taylor-Joy and Nicholas Hoult) travels to a coastal island to eat at an exclusive restaurant where the chef (Ralph Fiennes)...
Read more >
Mark Labels not Displaying
My mark labels are not displaying even though "Show Marked Labels" is checked. I have tried enlarging the view and nothing happens.
Read more >
When to Watch | Rachael Ray Show
Rachael - The official website for Rachael Ray's show, is your destination for show clips, videos, easy recipes, life hacks, makeovers, DIY ideas, ......
Read more >
Home • Ragtag Cinema
Now Showing at Ragtag. Babylon. Today's showtimes: 12:00 PM No Member Punches/Free Passes, 3:40 PM ...
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