export function AreaChart({ values, color = "#0F6E56" }: { values: number[]; color?: string }) { const max = Math.max(...values); const min = Math.min(...values); const points = values.map((v, i) => { const x = (i / (values.length - 1)) * 100; const y = 70 - ((v - min) / (max - min || 1)) * 50; return `${x},${y}`; }); const area = `0,78 ${points.join(" ")} 100,78`; const gradientId = `areaFill-${color.replace(/[^a-zA-Z0-9]/g, "")}`; return ( ); }