Skip to content
DocsChartsCorrelation triangleLast updated Nov 2, 2026

Correlation triangle

How every pair moves together. Sample data: six coins, tightest ETH · BTC 0.86, loosest TON · SOL −0.06.

Open in
Asset correlationCorrelation of daily returns over 30 days for BTC, ETH, SOL, XRP, ADA, TON: tightest ETH and BTC (0.86), loosest TON and SOL (−0.06).BTCETHSOLXRPADATONTightestETH · BTC0.86LoosestTON · SOL−0.06HedgeTONLOW TO BTCMOVE TOGETHERMOVE APART
Asset correlation
BTCETHSOLXRPADATON
BTC1.00
ETH0.861.00
SOL0.740.791.00
XRP0.520.480.411.00
ADA0.630.580.610.371.00
TON0.120.08−0.060.15−0.111.00
Asset correlationCorrelation of daily returns over 30 days for BTC, ETH, SOL, XRP, ADA, TON: tightest ETH and BTC (0.86), loosest TON and SOL (−0.06).BTCETHSOLXRPADATONTightestETH · BTCLoosestTON · SOLHedgeTONMOVE TOGETHERMOVE APART
Asset correlation
BTCETHSOLXRPADATON
BTC1.00
ETH0.861.00
SOL0.740.791.00
XRP0.520.480.411.00
ADA0.630.580.610.371.00
TON0.120.08−0.060.15−0.111.00

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 Correlation triangle component to your project.

    npx shadcn add @chartory/correlation-triangle
  3. 3

    Use it

    Pass your rows. The props are the Figma properties.

    usage.tsx
    import { CorrelationTriangle }  from "@/components/chartory/correlation-triangle"<CorrelationTriangle  data={coinCorrelation}  size="m"  legend/>

Props

<CorrelationTriangle>

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.CorrelationTriangleDataRequired
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"

CorrelationTriangleData

The data prop: one object for the whole chart.

PropTypeDefault
labels: The labels, in order.string[]Required
m: The matrix values, row by row.number[][]Required
rows: One entry per row.CorrelationTriangleRow[]Required
lW?: The row-label column (default 40, the kit's three-letter tickers).number40
listW?: The side list's room (default 64).number64
cols?: Column labels under the cells (default: when the cells are 30 px or more).booleanfalse

CorrelationTriangleRow

One object per entry in rows.

PropTypeDefault
label: The name shown on the chart.stringRequired
text: The label as shown.stringRequired
pct?: The share as shown, e.g. "42%".string—
tok?: The colour token, e.g. "data/primary".string—
tone?: The tone of the mark (a colour token).string—
h?: The row height in the side list, in px.number—

The data as a JSON Schema: schemas/correlation-triangle.json

Correlation triangle: a React and Figma chart in four sizes

What does a correlation triangle show?

A correlation triangle shows each pair of items once, coloured from moving together to moving apart, with the tightest and loosest pairs called out. Use it for assets, metrics or features that may move together.

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 Correlation triangle component?

It is one <CorrelationTriangle> component. Its props are the Figma properties with the same names and values, and the props table above lists them. The data is a correlation per pair.

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 every pair? Yes means the correlation triangle fits.
  • Is the link a correlation? Yes means the correlation triangle fits.
  • Is it items, not flows? Yes means the correlation triangle fits.

When does another type fit better?

  • Two measures, many points. Use Scatter instead.
  • Counts across categories. Use Cells matrix instead.
  • Amounts moving between groups. Use Chord instead.

Correlation 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.