Histogram

Adjacent bins, one hairline between. A density field, not a dashboard widget.

Count

51015200–11–22–33–44–5
Histogram
Labelcount
0–14
1–211
2–318
3–49
4–53

Bin

Line length

Adjacent bins, one hairline between. A density field on the 204.

Count

51015200–11–22–33–44–5
Histogram
Labelcount
0–14
1–211
2–318
3–49
4–53
npx @noordvc/raster-cli add histogram
<div class="rs-chart"><svg viewBox="0 0 240 64" width="240" height="64"><rect class="rs-chart-hist" x="8" y="36" width="36" height="20"/><rect class="rs-chart-hist" x="45" y="20" width="36" height="36"/><rect class="rs-chart-hist" x="82" y="8" width="36" height="48"/><rect class="rs-chart-hist" x="119" y="24" width="36" height="32"/></svg></div>
import { Histogram } from "@/components/raster/chart";

<Histogram
  height={204}
  bins={[
    { label: "0–1", count: 4 },
    { label: "1–2", count: 11 },
    { label: "2–3", count: 18 },
  ]}
/>
.rs-chart-hist