Velocity X Components

Stats & Numbers

Distribution Summary Strip

Stacks several datasets as one-line range tracks so min, median, max and the middle-50% spread are readable at a glance down a list — load times by route, deal size by rep, response time by week. A compact alternative to a histogram when the shape of the data matters less than where it sits.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add distribution-summary-strip

Built for astro.

Full docs for Distribution Summary Strip →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.1
Distribution Summary Strip

API

ms42–ms310 ms91 med

API: minimum ms42, 25th percentile ms68, median ms91, 75th percentile ms140, maximum ms310.

Database

ms12–ms58 ms24 med

Database: minimum ms12, 25th percentile ms18, median ms24, 75th percentile ms33, maximum ms58.

Queue worker

ms8–ms64 ms19 med

Queue worker: minimum ms8, 25th percentile ms14, median ms19, 75th percentile ms27, maximum ms64.

Min / max Middle 50% (p25–p75) Median

Props

NameTypeRequiredDefaultDescription
rowsDistributionRow[]Yes
unitstringNo''
decimalsnumberNo0
sharedScalebooleanNofalseShare one scale across all rows (easier to compare) vs each row scaled to its own min–max.
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/distribution-summary-strip/DistributionSummaryStrip.astro

Using the Distribution Summary Strip component

Install it with velocityx add distribution-summary-strip. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Stats & Numbers.