29.12.25
This commit is contained in:
35
src/App.jsx
35
src/App.jsx
@@ -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={[
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user