Closed samcarton closed 1 month ago
7.12.2
@mantine/charts
Next.js
All
name
.
TypeError: Cannot read properties of undefined
updateChartTooltipPayload
ChartTooltip
repro:
import { PieChart } from '@mantine/charts'; function Demo() { return ( <PieChart data={[ { name: 'USA.com', value: 400, color: 'blue' }, { name: 'Other', value: 200, color: 'gray.6' }, ]} withTooltip w={200} h={200} /> ); }
I also tried using label with a . and a sanitized name on the data but the ChartTooltip doesn't use the getSeriesLabels util since there's no "series" passed in.
label
getSeriesLabels
https://codesandbox.io/p/sandbox/busy-wind-6p7vh4
No response
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.12.2
What package has an issue?
@mantine/charts
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
All
Describe the bug
name
that contains a.
it will throw the following exception:TypeError: Cannot read properties of undefined
fromupdateChartTooltipPayload
inChartTooltip
repro:
I also tried using
label
with a.
and a sanitizedname
on the data but theChartTooltip
doesn't use thegetSeriesLabels
util since there's no "series" passed in.If possible, include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/sandbox/busy-wind-6p7vh4
Possible fix
No response
Self-service