From 436fc843fa97d70bd76e41c4d880b192acb23733 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 25 Jun 2025 18:22:11 +0000 Subject: [PATCH] Fix: Improve pie chart visualization Removed category labels with 0% values from the pie chart in the dashboard, aligning the visualization with the production app. --- src/services/transacao/summaryService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/transacao/summaryService.ts b/src/services/transacao/summaryService.ts index 6a55f09..5fa25f5 100644 --- a/src/services/transacao/summaryService.ts +++ b/src/services/transacao/summaryService.ts @@ -1,4 +1,3 @@ - import { supabase } from "@/integrations/supabase/client"; import { CategorySummary, MonthlyData, ResumoFinanceiro } from "@/types/financialTypes"; import { getUserEmail, getUserGroups } from "./baseService"; @@ -199,8 +198,9 @@ export async function getCategorySummary(tipo: string = 'despesa'): Promise valor > 0) // Filter out categories with 0 value .map(([categoria, valor], index) => ({ categoria, valor, @@ -209,7 +209,7 @@ export async function getCategorySummary(tipo: string = 'despesa'): Promise b.valor - a.valor); - console.log(`📋 [getCategorySummary] Resultado final:`, categoryArray); + console.log(`📋 [getCategorySummary] Resultado final (filtrado):`, categoryArray); return categoryArray; } catch (error) { console.error('💥 [getCategorySummary] Erro geral:', error);