import { money } from "../../lib/constants"; import { agg } from "../../lib/derive"; import FilterableRow from "../FilterableRow"; // Barra horizontal con doble medida (# y $) — equivalente de dashBar() (pages/resumen.js), con // cross-filter de clic vía FilterableRow (mismo patrón que Panel.js). export default function DashBar({ title, arr, dimKey }) { const rows = agg(arr, dimKey, (o) => o.val ?? o.actual ?? 0).sort((a, b) => b.v - a.v); const maxV = Math.max(...rows.map((d) => d.v), 1); return (
Sin datos.
)}