Closed temphiza closed 1 month ago
@temphiza
I think tooltipProps
just works fine to make customTooltip, what is your exact problem is?
https://mantine.dev/charts/area-chart/#custom-tooltip
tooltipProps
are pass down to recharts Tooltip component, not to custom Mantine tooltip component. This prop works as intended.
I tried to use labelFormatter which is part of tooltipProps but that function is not applied, see this line:
ChartTooltip component is not part of recharts. If you want to customize the content of the tooltip, create a custom tooltip component.
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.13.0
What package has an issue?
@mantine/charts
What framework do you use?
Vite
In which browsers you can reproduce the issue?
Chrome
Describe the bug
tooltipProps is not used in the ChartTooltip internal component.
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
No response
Self-service