'use client'; import { Bar, BarChart, CartesianGrid, Cell, Legend, Line, LineChart, Pie, PieChart, ResponsiveContainer, Tooltip, XAxis, YAxis, } from 'recharts'; import { colors } from '@nextcraft/ui'; /* -------------------------------------------------------------------------- */ /* Mock chart data */ /* -------------------------------------------------------------------------- */ const postingsData = [ { month: 'Apr', postings: 4, applications: 38 }, { month: 'May', postings: 6, applications: 62 }, { month: 'Jun', postings: 5, applications: 51 }, { month: 'Jul', postings: 8, applications: 84 }, { month: 'Aug', postings: 9, applications: 112 }, { month: 'Sep', postings: 7, applications: 142 }, ]; const sourceData = [ { name: 'Direct', value: 40, color: colors.primary[500] }, { name: 'AI Match', value: 30, color: colors.accent[500] }, { name: 'Referral', value: 20, color: colors.violet[400] }, { name: 'Job Board', value: 10, color: colors.amber[400] }, ]; const placementData = [ { month: 'Apr', placements: 2 }, { month: 'May', placements: 5 }, { month: 'Jun', placements: 9 }, { month: 'Jul', placements: 14 }, { month: 'Aug', placements: 21 }, { month: 'Sep', placements: 28 }, ]; /* -------------------------------------------------------------------------- */ /* Shared styling */ /* -------------------------------------------------------------------------- */ const tooltipStyle = { borderRadius: 8, border: `1px solid ${colors.neutral[200]}`, fontSize: 12, background: '#ffffff', } as const; const axisTick = { fontSize: 12, fill: colors.neutral[500] } as const; /* -------------------------------------------------------------------------- */ /* Component */ /* -------------------------------------------------------------------------- */ export function AnalyticsCharts() { return (
Last 6 months
Where candidates come from
Cumulative placements