diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx index 7cfcb10f34..7c03c8c713 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx @@ -70,7 +70,7 @@ export const GraphWidgetBarChart = ({ yAxisLabel, id, layout = 'vertical', - groupMode = 'grouped', + groupMode, seriesLabels, rangeMin, rangeMax, diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts index 597503907c..85a5cc8abe 100644 --- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts +++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts @@ -8,9 +8,9 @@ export const getEffectiveGroupMode = ( return undefined; } - if (groupMode === 'STACKED') { - return 'stacked'; + if (groupMode === 'GROUPED') { + return 'grouped'; } - return 'grouped'; + return 'stacked'; };