+ {displayedSegments.map((segment) => {
+ const ratio = privacyMode ? 1 : fillRatio(segment.amountCents, incomeCents);
+ const style: BarStyle = {
+ '--overview-allocation-color': segment.color,
+ '--overview-allocation-fill': `${ratio * 100}%`,
+ };
+ return (
+
+
+
+ {segment.label}
+
+
+
+
+
+ );
+ })}
+