import React from "react"; import { ResponsiveContainer, AreaChart as AC, CartesianGrid, XAxis, YAxis, Tooltip, Legend, Area, } from "recharts"; import { ChartProps } from "../types"; export default function AreaChart(props: ChartProps) { return ( { return { name: d.name, ...d.values, }; })} > {Object.keys(props.data[0].values).map((k, i) => ( ))} ); }