Sextant
← Catalog
Block · intelligent

Dependency Chord

A chord diagram of movement between groups — plan migrations, team handoffs, channel referrals — with arcs sized by volume and hover-to-isolate a group's connections.

State
Size
Mode

Subscription tier migrations

1,414

total moves · 4 groups

  • Free
  • Pro
  • Team
  • Enterprise

1,414 moves between 4 groups; the heaviest flow is Free → Pro (380), and Pro is the most-connected (1,035 in + out).

Subscription tier migrations — flow matrix (rows: from, columns: to)
From \ ToFreeProTeamEnterprise
Free03808524
Pro156031862
Team281070195
Enterprise612410

Billing system · arc width represents account count

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
labelsarrayyes
matrixarrayyes

Static props

import { ChartDependencyChord } from "@/components/blocks/chart-dependency-chord/chart-dependency-chord";

<ChartDependencyChord data={myData} />

Client fetch (SWR)

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

Server component (RSC)

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

<ChartDependencyChord data={data} />

Map arbitrary rows

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

const out = mapRows(rows, { /* contractKey: "yourColumn" */ }, dataSchema);
if (out.ok) <ChartDependencyChord 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 (node, ribbon)

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

Format numbers (currency / locale)

const eur = new Intl.NumberFormat("de-DE", {
  style: "currency",
  currency: "EUR",
  notation: "compact",
});

<ChartDependencyChord valueFormatter={(n) => eur.format(n)} />

Replace or hide the narrative

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

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

Restyle any region

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

Drop the card chrome (headless plot)

import { ChartDependencyChordPlot } from "@/components/blocks/chart-dependency-chord/chart-dependency-chord";

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