first commit
This commit is contained in:
65
src/partials/fintech/FintechCard11.jsx
Normal file
65
src/partials/fintech/FintechCard11.jsx
Normal file
@@ -0,0 +1,65 @@
|
||||
import React from 'react';
|
||||
import LineChart from '../../charts/LineChart08';
|
||||
|
||||
// Import utilities
|
||||
import { tailwindConfig, hexToRGB } from '../../utils/Utils';
|
||||
|
||||
function FintechCard11() {
|
||||
|
||||
const chartData = {
|
||||
labels: [
|
||||
'12-01-2020', '01-01-2021', '02-01-2021',
|
||||
'03-01-2021', '04-01-2021', '05-01-2021',
|
||||
'06-01-2021', '07-01-2021', '08-01-2021',
|
||||
'09-01-2021', '10-01-2021', '11-01-2021',
|
||||
'12-01-2021', '01-01-2022', '02-01-2022',
|
||||
'03-01-2022', '04-01-2022', '05-01-2022',
|
||||
'06-01-2022', '07-01-2022', '08-01-2022',
|
||||
'09-01-2022', '10-01-2022', '11-01-2022',
|
||||
'12-01-2022', '01-01-2023',
|
||||
],
|
||||
datasets: [
|
||||
// Line
|
||||
{
|
||||
data: [
|
||||
222, 222, 226, 271, 365, 365, 238,
|
||||
324, 288, 206, 324, 324, 500, 409,
|
||||
409, 273, 232, 273, 500, 570, 767,
|
||||
808, 685, 767, 685, 685,
|
||||
],
|
||||
fill: true,
|
||||
backgroundColor: `rgba(${hexToRGB(tailwindConfig().theme.colors.emerald[500])}, 0.08)`,
|
||||
borderColor: tailwindConfig().theme.colors.emerald[500],
|
||||
borderWidth: 2,
|
||||
tension: 0,
|
||||
pointRadius: 0,
|
||||
pointHoverRadius: 3,
|
||||
pointBackgroundColor: tailwindConfig().theme.colors.emerald[500],
|
||||
clip: 20,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex flex-col col-span-full sm:col-span-6 xl:col-span-3 bg-white shadow-lg rounded-sm border border-slate-200">
|
||||
<div className="px-5 pt-5">
|
||||
<header>
|
||||
<h3 className="text-sm font-semibold text-slate-500 uppercase mb-1">
|
||||
<span className="text-slate-800">Amzn</span> - Amazon Inc.
|
||||
</h3>
|
||||
<div className="text-2xl font-bold text-slate-800 mb-1">$3,400.35</div>
|
||||
<div className="text-sm">
|
||||
<span className="font-medium text-emerald-500">+$142 (3,7%)</span> - Today
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
{/* Chart built with Chart.js 3 */}
|
||||
<div className="grow">
|
||||
{/* Change the height attribute to adjust the chart height */}
|
||||
<LineChart data={chartData} width={286} height={98} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default FintechCard11;
|
||||
Reference in New Issue
Block a user