import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Legend, } from "recharts"; interface TrendData { date: string; positif: number; negatif: number; netral: number; } interface TrendChartProps { data: TrendData[]; } export function TrendChart({ data }: TrendChartProps) { const CustomTooltip = ({ active, payload, label }: any) => { if (active && payload && payload.length) { return (

{label}

{payload.map((item: any, index: number) => (
{item.name}: {item.value}
))}
); } return null; }; return (
} /> ( {value} )} />
); }