"use client"; import { Radar, RadarChart, PolarGrid, PolarAngleAxis, PolarRadiusAxis, ResponsiveContainer, } from "recharts"; import { RadarChartData } from "@/lib/types"; interface SkillsRadarChartProps { data: RadarChartData[]; } export function SkillsRadarChart({ data }: SkillsRadarChartProps) { // Transform data for the chart with abbreviated labels const chartData = data.map((item) => ({ category: item.category, shortLabel: item.category.length > 8 ? item.category.substring(0, 8) + "..." : item.category, score: item.score, maxScore: item.maxScore, })); if (data.length === 0) { return (
Aucune donnée disponible