import React from 'react'; import LineChart from '../../charts/LineChart03'; // Import utilities import { tailwindConfig, hexToRGB } from '../../utils/Utils'; function AnalyticsCard01() { 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: [ // Indigo line { label: 'Current', data: [ 5000, 8700, 7500, 12000, 11000, 9500, 10500, 10000, 15000, 9000, 10000, 7000, 22000, 7200, 9800, 9000, 10000, 8000, 15000, 12000, 11000, 13000, 11000, 15000, 17000, 18000, ], fill: true, backgroundColor: `rgba(${hexToRGB(tailwindConfig().theme.colors.blue[500])}, 0.08)`, borderColor: tailwindConfig().theme.colors.indigo[500], borderWidth: 2, tension: 0, pointRadius: 0, pointHoverRadius: 3, pointBackgroundColor: tailwindConfig().theme.colors.indigo[500], clip: 20, }, // Gray line { label: 'Previous', data: [ 8000, 5000, 6500, 5000, 6500, 12000, 8000, 9000, 8000, 8000, 12500, 10000, 10000, 12000, 11000, 16000, 12000, 10000, 10000, 14000, 9000, 10000, 15000, 12500, 14000, 11000, ], borderColor: tailwindConfig().theme.colors.slate[300], fill: false, borderWidth: 2, tension: 0, pointRadius: 0, pointHoverRadius: 3, pointBackgroundColor: tailwindConfig().theme.colors.slate[300], clip: 20, }, ], }; return (

Analytics

{/* Unique Visitors */}
24.7K
+49%
Unique Visitors
{/* Total Pageviews */}
56.9K
+7%
Total Pageviews
{/* Bounce Rate */}
54%
-7%
Bounce Rate
{/* Visit Duration*/}
2m 56s
+7%
Visit Duration
{/* Chart built with Chart.js 3 */}
{/* Change the height attribute to adjust the chart height */}
); } export default AnalyticsCard01;