This commit is contained in:
2025-12-29 22:35:04 +01:00
parent 883b1104c7
commit 2431da62f6

View File

@@ -517,28 +517,35 @@ export default function App() {
); );
})} })}
</div> </div>
<div className="w-full h-1 bg-gray-200 dark:bg-gray-600 mb-4"></div> {/* SEPARATOR */}
<div className="w-full h-1 bg-gray-200 dark:bg-gray-600 my-4"></div>
<AreaChart <AreaChart
data={data} data={data}
index="date" index="date"
categories={["value"]} categories={["value"]}
colors={["teal-300"]} colors={["teal-300"]}
className="h-16" className="h-20"
showXAxis={false} showXAxis={false}
showYAxis={false} showYAxis={false}
showGridLines={false} showGridLines={false}
showLegend={false} showLegend={false}
curve="monotone" curve="monotone"
/> />
</Card> </Card>
{/* Cards KPI */} {/* Cards KPI */}
{cards.map((card) => { {cards.map((card) => {
const Icon = card.icon; const Icon = card.icon;
const bar_data = [ const bar_data = [
{ label: "Invoiced", value: card.amountInvoiced }, {
{ label: "30 days", value: card.amount30Days }, name: "Amounts",
{ label: "60 days", value: card.amount60Days }, Invoiced: card.amountInvoiced,
"30 days": card.amount30Days,
"60 days": card.amount60Days,
},
]; ];
return ( return (
<Card <Card
key={card.id} key={card.id}
@@ -555,14 +562,26 @@ export default function App() {
<div className="w-full h-1 bg-gray-200 dark:bg-gray-600 mb-4"></div> <div className="w-full h-1 bg-gray-200 dark:bg-gray-600 mb-4"></div>
<BarChart <BarChart
data={bar_data} data={bar_data}
index="label" index="name"
categories={["value"]} categories={["Invoiced", "30 days", "60 days"]}
colors={["teal", "blue", "slate"]} colors={["teal-400", "slate", "blue-400"]}
className="h-28" className="h-28"
showLegend={false} showLegend={false}
showYAxis={false} showYAxis={false}
showGridLines={false} showGridLines={false}
barRadius={6}
customXAxisTick={(payload) => (
<text
x={payload.x}
y={payload.y + 14}
textAnchor="middle"
className="fill-gray-500 text-[10px]"
>
{payload.value}
</text>
)}
/> />
{/* <BarChart {/* <BarChart
data={[ data={[
{ {