Support full Recharts LabelProps for reference line labels #8790
JonathanG-DC
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Mantine Chart reference line labels currently expose only a limited subset of Recharts LabelProps. This prevents the use of already supported Recharts options such as angle, which is particularly useful for busy charts.
Proposed change:
Allow forwarding the full Recharts LabelProps to reference line labels either directly or via a dedicated labelProps field.
Example:
Mantine implementation:
mantine/packages/@mantine/charts/src/CompositeChart/CompositeChart.tsx
Lines 378 to 383 in b90d9b8
Recharts interface:
https://github.com/recharts/recharts/blob/3dd3254165cada722e8fb053d322814443e9115d/src/component/Label.tsx#L45-L124
Angle value demo using base Recharts:


Beta Was this translation helpful? Give feedback.
All reactions