/** * VehicleCountChart — area chart of vehicles-in-frame over the last 60 frames. */ import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, } from 'recharts' export default function VehicleCountChart({ history }) { const data = history.map((m, i) => ({ t: i, count: m.vehicles_in_frame ?? 0, })) return (

Vehicles in Frame

''} formatter={(v) => [v, 'vehicles']} />
) }