Not able to add multiline text with different format in central of pie/donut
krishnagopalpatidar opened this issue · 1 comments
krishnagopalpatidar commented
Do you want to request a feature or report a bug?
help needed
What is the current behaviour?
Not able to add multiline text with different format in central of pie/donut. We assigned a div to label property with labelStyle and labelPosition as 0. It works fine if we give one line string value, but doesn't work if we assign div.
What is the expected behaviour?
As per definition of LabelRenderFunction, it seems to accept ReactElementso it should accept
toomuchdesign commented
hi @krishnagopalpatidar
if the output to be styled is provided as PieChart
children, then it has to render SVG elements, no div
s or any else DOM elements.
Otherwise you can consider rendering these extra elements as normal DOM elements out of the PieChart
(finding a proper way to position then).