Velocity X Components

Standard Data

Histogram Chart

Responsive SVG histogram for numeric arrays with configurable bins, accessible summary, labelled counts, and no chart dependency.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-histogram-chart

Built for astro.

Full docs for Histogram Chart →

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

astro v1.0.0
Histogram Chart
0 3 6 12–15.63: 3 3 15.63–19.25: 4 4 19.25–22.88: 5 5 22.88–26.5: 6 6 26.5–30.13: 5 5 30.13–33.75: 2 2 33.75–37.38: 1 1 37.38–41: 2 2
From 12 To 41
View bin counts
Project completion time in days: number of values in each range
Range Count
12– 15.63 3
15.63– 19.25 4
19.25– 22.88 5
22.88– 26.5 6
26.5– 30.13 5
30.13– 33.75 2
33.75– 37.38 1
37.38– 41 2

Props

NameTypeRequiredDefaultDescription
valuesnumber[]Yes
binsnumberNo8
labelstringNo"Value distribution"
localestringNo"en-AU"
heightnumberNo220
classNamestringNo""

File this creates

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

text
components/velocity/standard-histogram-chart/HistogramChart.astro

Using the Histogram Chart component

Install it with velocityx add standard-histogram-chart. 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 Standard Data.