Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

BoxStatsTable

Open .md
Live preview

Loading example…

Hidden data table with the summary of every box, violin or cloud.

import { BoxStatsTable } from "@jcsoftdev/ui/charts";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/charts/core.

<BoxStatsTable
caption="Duración del servicio por barbero"
labels={labels}
rows={[
{ name: "Kevin", stats: boxStats(kevin), format: minutes },
{ name: "Diego", stats: boxStats(diego), format: minutes },
{ name: "Andrea", stats: boxStats(andrea), format: minutes },
{ name: "Renzo", stats: null, format: minutes },
]}
/>
Prop Type Default Description
caption * string
labels * DistributionLabels
rows * readonly { name: string; stats: BoxStats | null; format: ValueFormatter; }[]

* marks a required prop.

packages/ui/src/charts/core/distribution/marks.tsx