073
Request latency as a histogram with p50, p95 and p99 marked on it; drag a brush across the bars (or Shift-arrow) to see how many requests fall in any window.
akahistogram·latency·percentile
Run this in any project set up for the shadcn CLI. It copies the Latency Histogram source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/latency-histogram.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { LatencyHistogram } from "@/components/latency-histogram";
export default function Page() {
return <LatencyHistogram />;
}A free React component in the Numbers collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Latency Histogram source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| title | string | "Request latency" |
| caption | string | "POST /v1/checkout · last hour" |
| bins | number[] | defaultBins |
| binSize | number | 30 |
| percentiles | number[] | [0.5, 0.95, 0.99] |
| defaultRange | [number, number] | null | null |
| onRangeChange | (range: [number, number] | null) => void | — |
| defaultScale | HistogramScale | "linear" |
| locale | string | "en-US" |
| className | string | — |