feat: enhance category breakdown and pie chart components with icon support and improved tooltip formatting

This commit is contained in:
Julien Froidefond
2025-11-28 13:56:58 +01:00
parent 0e0db122b9
commit fc483d0573
5 changed files with 92 additions and 83 deletions

View File

@@ -97,6 +97,7 @@ export default function StatisticsPage() {
name: category?.name || "Non catégorisé",
value: Math.round(total),
color: category?.color || "#94a3b8",
icon: category?.icon || "HelpCircle",
};
})
.sort((a, b) => b.value - a.value)