'use client'; export default function ChartPanel({title, data, type}) { const maxVal = Math.max(...data.map(d => d.value)); return (