Skip to content

Commit 9b3f369

Browse files
committed
Legend values should be numbers
1 parent 9e6c52f commit 9b3f369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/components/primitives/charts/ChartLegendCompound.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function ChartLegendCompound({
7878
// If we have activePayload data from hovering over a bar
7979
const hoverData = highlight.activePayload.reduce((acc, item) => {
8080
if (item.dataKey && item.value !== undefined) {
81-
acc[item.dataKey] = item.value;
81+
acc[item.dataKey] = Number(item.value) || 0;
8282
}
8383
return acc;
8484
}, {} as Record<string, number>);

0 commit comments

Comments
 (0)