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:
@@ -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)`,
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user