Rechart adding labels to charts. For others looking for an answer, this works: Define a function to render you labels the way you want, some like:
1 2 3 | let renderLabel = function(entry) { return entry.name; } |
Set the label prop to point to your function:
1 2 3 | <Pie label={renderLabel} [ you other properties ]> [ your content ] </Pie> |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.