'use client'; export default function AnalyticsChart({ data }: { data: any[] }) { const maxValue = Math.max(...data.map(d => d.views)); return (