"use client"; import { BarChart, Bar, XAxis, YAxis, Tooltip, ResponsiveContainer, Cell, } from "recharts"; // SVG fill colors for the bar chart (work in both light and dark contexts) const PROFICIENCY_SVG_COLORS = ["#9ca3af", "#60a5fa", "#818cf8", "#f59e0b", "#4ade80"]; interface SkillDistributionChartProps { data: { skill: string; count: number; avgProficiency: number }[]; } export default function SkillDistributionChart({ data }: SkillDistributionChartProps) { return ( [`${value ?? 0} resources`, "Count"] as [string, string]} contentStyle={{ fontSize: 12, borderRadius: 8 }} /> {data.map((entry) => ( ))} ); }