Labels shomtimes not show
See original GitHub issueDo you want to request a feature or report a bug?
bug
What is the current behavior?
Some times i dont see label
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:
- Created 6 years ago
- Reactions:12
- Comments:43 (1 by maintainers)
Top 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 >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
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!
it still persists on v1.8.5, not sure why it was closed