Skip to content
DocsChartsHistogramLast updated Nov 2, 2026

Histogram

How values spread across ranges. Sample data: response times from 0 to 900 ms, P50 250 ms, P95 475 ms.

Open in
Response latency distribution96,224 requests in 25 ms latency bins from 0 to 900 ms; p50 is 250 ms, p95 is 475 ms.15K10K5K0P50 250 MSP95 475 MS0225 MS450 MS675 MS900 MSWITHIN P95TAIL ABOVE P95
Response latency distribution
LatencyRequests
0–25 ms60
25–50 ms60
50–75 ms297
75–100 ms1,845
100–125 ms4,755
125–150 ms7,829
150–175 ms9,963
175–200 ms10,800
200–225 ms10,537
225–250 ms9,569
250–275 ms8,264
275–300 ms6,884
300–325 ms5,588
325–350 ms4,451
350–375 ms3,497
375–400 ms2,720
400–425 ms2,100
425–450 ms1,614
450–475 ms1,236
475–500 ms944
500–525 ms721
525–550 ms550
550–575 ms420
575–600 ms321
600–625 ms245
625–650 ms188
650–675 ms144
675–700 ms111
700–725 ms85
725–750 ms66
750–775 ms60
775–800 ms60
800–825 ms60
825–850 ms60
850–875 ms60
875–900 ms60
Response latency distribution96,224 requests in 25 ms latency bins from 0 to 900 ms; p50 is 250 ms, p95 is 475 ms.15K10K5K0P50 250 MSP95 475 MS0225 MS450 MS900 MSWITHIN P95TAIL ABOVE P95
Response latency distribution
LatencyRequests
0–25 ms60
25–50 ms60
50–75 ms297
75–100 ms1,845
100–125 ms4,755
125–150 ms7,829
150–175 ms9,963
175–200 ms10,800
200–225 ms10,537
225–250 ms9,569
250–275 ms8,264
275–300 ms6,884
300–325 ms5,588
325–350 ms4,451
350–375 ms3,497
375–400 ms2,720
400–425 ms2,100
425–450 ms1,614
450–475 ms1,236
475–500 ms944
500–525 ms721
525–550 ms550
550–575 ms420
575–600 ms321
600–625 ms245
625–650 ms188
650–675 ms144
675–700 ms111
700–725 ms85
725–750 ms66
750–775 ms60
775–800 ms60
800–825 ms60
825–850 ms60
850–875 ms60
875–900 ms60

Installation

  1. 1

    Set up the registry once

    This chart is free in Hearth and MIT licensed: no token. Add @chartory to components.json once (the URL alone, no headers), or skip this when another chart is already installed.

    Installation guide
  2. 2

    Add the chart

    One command adds the Histogram component to your project.

    npx shadcn add @chartory/histogram
  3. 3

    Use it

    Pass your rows. The props are the Figma properties.

    usage.tsx
    import { Histogram }  from "@/components/chartory/histogram"<Histogram  data={responseTimes}  size="m"  legend/>

Props

<Histogram>

Every prop but data is a Figma property with the same name and values.

PropTypeDefault
data: The chart's data. The tables below list every field.HistogramDataRequired
size: The size class. Each one is laid out again from the data."xs" | "s" | "m" | "l""m"
legend: Shows the legend row under the plot.booleantrue
color: The data colour of the primary marks (data/primary)."cat-1" | "cat-2" | "cat-3" | "cat-4""cat-1"

HistogramData

The data prop: one object for the whole chart.

PropTypeDefault
vals: The values, in order.number[]Required
max: The top of the value scale.numberRequired
ticks: The axis tick labels.string[]Required
tailFrom: Where the tail starts.numberRequired
yW?: The width of the y axis label column, in px.number36
p: The marked bins: index, label and colour.HistogramP[]Required
xl: The x axis labels: [position, label] pairs.[number, string][]Required

HistogramP

One object per entry in p.

PropTypeDefault
i: The index of the item it belongs to.numberRequired
label: The name shown on the chart.stringRequired
tok: The colour token, e.g. "data/primary".stringRequired
side?: Which side the label sits on."left"—

The data as a JSON Schema: schemas/histogram.json

Histogram: a React and Figma chart in four sizes

What does a histogram show?

A histogram sorts many values into bins and counts each bin, so the spread shows: where most values sit and how long the tail is. Use it for response times, order sizes and any measure with thousands of values.

Chartory ships it as a Figma component and a React component with the same name. The code installs from the shadcn registry with one command and lands in your project as a file you own.

What is the Histogram component?

It is one <Histogram> component. Its props are the Figma properties with the same names and values, and the props table above lists them. The data is already-binned counts, plus the P50 and P95 marks.

Sizes XS, S, M and L re-lay the chart out from the data instead of scaling it, so labels stay readable at every size.

When should I use it?

  • Is it one group? Yes means the histogram fits.
  • Does the full shape matter? Yes means the histogram fits.
  • Is it one moment? Yes means the histogram fits.

When does another type fit better?

  • Several groups compared. Use Box plot instead.
  • A summary is enough. Use Box plot instead.
  • Values spread over time. Use Latency field instead.

Histogram questions

Installing, data, Figma and plans.

  • Yes. It installs through the shadcn registry with the shadcn CLI, and the file lands in your project.

Stay in the loop

New charts, by email.

Get an email when new chart types and releases ship.

Unsubscribe any time.