You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using recharts BarChart and its svg element has .recharts-surface class, which I need to style through chartStyle prop. I looked into source code and it seems like svg tag doesn't consume getElementStyle(attribs, chartStyle, additionalStyle) function, which maps recharts classNames to a stylesheet.
Is there any workaround to that for now (because it kind of urgent) or it can be only resolved in the new version? (in case my assumption is correct)
Thanks in advance!
Reproduction
Try to apply any stylesheet to the ReactPDFChart that wraps BarChart (which has recharts-surface as className for svg and recharts-text for text and see that text one has worked and svg has not)
Btw I think that it make sense to apply this fix to all svg elements (such as <g>, <line>, etc. ), because they usually have some className, that could be mapped and customised.
Describe the bug
I'm using recharts BarChart and its svg element has
.recharts-surface
class, which I need to style throughchartStyle
prop. I looked into source code and it seems like svg tag doesn't consumegetElementStyle(attribs, chartStyle, additionalStyle)
function, which maps recharts classNames to a stylesheet.Is there any workaround to that for now (because it kind of urgent) or it can be only resolved in the new version? (in case my assumption is correct)
Thanks in advance!
Reproduction
Try to apply any stylesheet to the ReactPDFChart that wraps BarChart (which has
recharts-surface
as className forsvg
andrecharts-text
fortext
and see thattext
one has worked andsvg
has not)Validations
The text was updated successfully, but these errors were encountered: