Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,151,198 members, 7,811,521 topics. Date: Sunday, 28 April 2024 at 01:38 PM |
Nairaland Forum / Science/Technology / Programming / Help Needed Recharts Js React (373 Views)
[free Source Code] Twitter Clone With React JS, React Redux / Node Js/react JS Web Developer Needed For Full Time Or Contract Work / Node JS, React JS & Redux Developer Is Needed (2) (3) (4)
(1) (Reply)
Help Needed Recharts Js React by 1c3JaY: 9:45pm On Jul 16, 2022 |
Hi guys, I'm trying to place a react element label at the center of my pie chart using Recharts. I set the Label content props to a React element as stated in the docs but the label is not visible anywhere. Kindly go through my code sample, probably I'm missing something. Thanks https://codesandbox.io/s/recharts-issue-template-forked-sndl8h?file=/src/index.js |
Re: Help Needed Recharts Js React by Nobody: 5:46pm On Jul 17, 2022 |
Label appears to work with a plaintext value, plaintext children. Attempting to return html elements from Label content=, or passing them directly to content does nothing.. if you use value="Testing" it will work instead of content={<Anything/>} |
Re: Help Needed Recharts Js React by 1c3JaY: 11:17am On Aug 14, 2022 |
GREATIGBOMAN: Ya it works on strings and it should work with a react element as stated on the docs but seems that doesn't work. |
(1) (Reply)
10 Ways To Buy Cheap Gmail Accounts / Trying To Connect To Mysql Using Node. What Am I Doing Wrongly? / Analysis On The Legalization And The Illegalization Of Marijuana In America
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10 |