'use client'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Legend } from 'recharts'; import { VelocityTrend } from '@/services/metrics'; interface VelocityTrendChartProps { data: VelocityTrend[]; className?: string; } export function VelocityTrendChart({ data, className }: VelocityTrendChartProps) { // eslint-disable-next-line @typescript-eslint/no-explicit-any const CustomTooltip = ({ active, payload, label }: { active?: boolean; payload?: any[]; label?: string }) => { if (active && payload && payload.length) { const data = payload[0].payload; return (
{`Semaine du ${label}`}
Terminées: {data.completed}
Créées: {data.created}
Vélocité: {data.velocity.toFixed(1)}%