Sextant
← Catalog
Block · intelligent

Hexbin Density

Hexagonal density binning that turns an overplotted scatter into a readable heat field, surfacing the modal cluster and the x↔y correlation in plain language.

State
Size
Mode

Pipeline velocity

170

records · 86 cells

170 records across 86 cells; the densest cluster sits around $20k / 33d (3% of points) — higher deal size (usd) tends toward higher days to close (r = +0.91).

Pipeline velocity — record density by cell (Deal size (USD) × Days to close)
Deal size (USD) ≈Days to close ≈Records
$20k33d5
$8k24d5
$15k33d5
$57k57d5
$25k16d4
$3k8d4
$59k66d4
$47k41d4
$3k24d4
$35k33d4
$32k41d3
$40k49d3
$28k24d3
$18k24d3
$86k74d3
$71k41d3
$64k49d3
$37k41d3
$6k16d3
$84k66d3
$52k57d3
$115k74d3
$50k49d3
$76k57d3

Acme CRM · closed deals Jan–Jun 2026 · updated daily

Demo data is illustrative. Replace with your own typed data prop.

Use it with your data

Data contract

Passed via the data prop — an object: validated at runtime, so a bad shape degrades to the error state rather than crashing.

FieldTypeRequired
pointsarrayyes
xLabelstringno
yLabelstringno

Static props

import { ChartHexbinDensity } from "@/components/blocks/chart-hexbin-density/chart-hexbin-density";

<ChartHexbinDensity data={myData} />

Client fetch (SWR)

const { data, isLoading, error } = useSWR("/api/metric", fetcher);
// route isLoading/error through <ChartStates>, then:
<ChartHexbinDensity data={data} />

Server component (RSC)

const data = await fetch(url, {
  next: { revalidate: 3600 },
}).then((r) => r.json());

<ChartHexbinDensity data={data} />

Map arbitrary rows

import { mapRows } from "@/lib/sextant/column-map";

const out = mapRows(rows, { /* contractKey: "yourColumn" */ }, dataSchema);
if (out.ok) <ChartHexbinDensity data={out.data} />;

Make it yours

Every customization below is an optional prop — omit them all and you get the defaults shown above. Recolor, reformat, restyle, or drop the card chrome without forking the component.

Recolor or rename a series (bin)

<ChartHexbinDensity
  series={{ bin: { color: "var(--chart-3)", label: "…" } }}
/>

Replace or hide the narrative

<ChartHexbinDensity narrative="Your own one-liner." />

// …or hide it entirely:
<ChartHexbinDensity narrative={false} />

Restyle any region

<ChartHexbinDensity
  className="max-w-xl"
  classNames={{ body: "bg-muted/20" }}
/>

Drop the card chrome (headless plot)

import { ChartHexbinDensityPlot } from "@/components/blocks/chart-hexbin-density/chart-hexbin-density";

// Just the chart body — bring your own card/layout:
<ChartHexbinDensityPlot data={data} config={config} />