'use client'; import { Bar, BarChart, CartesianGrid, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts'; import { green1, green2, green5 } from '../colors'; type SkillsRadarPoint = { axis: string; observed?: number; self_reported?: number; certified?: number; }; export default function SkillsValidation({ skillsCategoryRadar, headless, title = 'Skills by Validation Type', description = 'The bar chart shows how each skill is supported by self-attested claims, observed practice, or certified evidence.', tickFontSize = 12, marginLeft = 8, marginRight = 8, }: { skillsCategoryRadar?: SkillsRadarPoint[]; headless?: boolean; title?: string; description?: string; tickFontSize?: number; marginLeft?: number; marginRight?: number; }) { const skillsRadarLimited = skillsCategoryRadar || []; const hasNoData = skillsRadarLimited.length === 0 || skillsRadarLimited.every(p => !p.observed && !p.self_reported && !p.certified); const xAxisBottomOffset = 50 + 36; // XAxis height + BarChart margin.bottom return (
{description}