We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e6c52f commit 9b3f369Copy full SHA for 9b3f369
1 file changed
apps/webapp/app/components/primitives/charts/ChartLegendCompound.tsx
@@ -78,7 +78,7 @@ export function ChartLegendCompound({
78
// If we have activePayload data from hovering over a bar
79
const hoverData = highlight.activePayload.reduce((acc, item) => {
80
if (item.dataKey && item.value !== undefined) {
81
- acc[item.dataKey] = item.value;
+ acc[item.dataKey] = Number(item.value) || 0;
82
}
83
return acc;
84
}, {} as Record<string, number>);
0 commit comments