import { ScatterChart, Scatter, XAxis, YAxis, Tooltip, CartesianGrid, } from 'recharts'; import { ChartContainer, ChartTooltipContent, } from '@/components/ui/chart'; type Point = { commune: string; taux: number; volume: number }; export default function ScatterPlot({ data }: { data: Point[] }) { const config = { Communes: { label: 'Communes', color: '#0B5FFF' }, } as const; return ( } cursor={{ strokeDasharray: '3 3' }} formatter={(v: any) => (typeof v === 'number' ? new Intl.NumberFormat('fr-FR').format(v) : v)} /> ); }