feat(05-01): update chart Bar radius to 0 and remove rounded-full legend dot

- SpendBarChart: set radius={0} on both Bar elements (was radius={4})
- IncomeBarChart: set radius={0} on both Bar elements (was radius={[4,4,0,0]})
- ExpenseDonutChart: remove rounded-full from legend color dot className
This commit is contained in:
2026-04-20 17:11:48 +02:00
parent 99b5b5f8e4
commit 4c74deced7
3 changed files with 5 additions and 5 deletions

View File

@@ -138,7 +138,7 @@ export function ExpenseDonutChart({
className="flex items-center gap-2 text-sm" className="flex items-center gap-2 text-sm"
> >
<span <span
className="inline-block size-3 shrink-0 rounded-full" className="inline-block size-3 shrink-0"
style={{ style={{
backgroundColor: `var(--color-${entry.type}-fill)`, backgroundColor: `var(--color-${entry.type}-fill)`,
}} }}

View File

@@ -54,9 +54,9 @@ export function IncomeBarChart({
<Bar <Bar
dataKey="budgeted" dataKey="budgeted"
fill="var(--color-budgeted)" fill="var(--color-budgeted)"
radius={[4, 4, 0, 0]} radius={0}
/> />
<Bar dataKey="actual" radius={[4, 4, 0, 0]}> <Bar dataKey="actual" radius={0}>
{data.map((entry, index) => ( {data.map((entry, index) => (
<Cell <Cell
key={index} key={index}

View File

@@ -64,9 +64,9 @@ export function SpendBarChart({
<Bar <Bar
dataKey="budgeted" dataKey="budgeted"
fill="var(--color-budgeted)" fill="var(--color-budgeted)"
radius={4} radius={0}
/> />
<Bar dataKey="actual" radius={4}> <Bar dataKey="actual" radius={0}>
{data.map((entry, index) => ( {data.map((entry, index) => (
<Cell <Cell
key={index} key={index}