diff --git a/src/common/components/StackedBarBreakdown.tsx b/src/common/components/StackedBarBreakdown.tsx index 45bdca667..9a089c1dc 100644 --- a/src/common/components/StackedBarBreakdown.tsx +++ b/src/common/components/StackedBarBreakdown.tsx @@ -43,9 +43,10 @@ export function StackedBarBreakdown({ segments, title, showValues = false, value {/* The stacked bar */} {nonZeroSegments.map(({ key, value, color }) => { @@ -57,7 +58,7 @@ export function StackedBarBreakdown({ segments, title, showValues = false, value sx={{ width: `${percentage}%`, backgroundColor: color, - transition: 'width 0.3s ease-in-out', + // transition: 'width 0.3s ease-in-out', }} /> ); @@ -65,12 +66,15 @@ export function StackedBarBreakdown({ segments, title, showValues = false, value {/* Legend with colored squares */} - + {nonZeroSegments.map(({ key, label, value, color }) => { const percentage = (value / total) * 100; return ( - + {label} {showValues ? `${valueFormatter(value)} (${percentage.toFixed(0)}%)`