From c76ddfd6d1e4e0afbb08fc5bfe4f1d7aae4dbf5c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Bosi?=
<71827178+bosiraphael@users.noreply.github.com>
Date: Fri, 23 Jan 2026 11:11:26 +0100
Subject: [PATCH] [DASHBOARDS] Fix pie chart gap when there is only one slice
(#17388)
## Before
## After
---
.../graphWidgetPieChart/components/GraphWidgetPieChart.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx
index ae1034e815..2d66fafe3a 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx
@@ -140,7 +140,7 @@ export const GraphWidgetPieChart = ({
const chartColors = hasNoData
? [theme.background.tertiary]
: enrichedData.map((item) => item.colorScheme.solid);
- const pieChartPadAngle = hasNoData ? 0 : 0.4;
+ const pieChartPadAngle = hasNoData || enrichedData.length <= 1 ? 0 : 0.4;
const ArcsLayer = useCallback(
(props: PieCustomLayerProps) => (