Skip to content

Charts

Every chart type and its props.

Use this page to look up the props of a chart or number component: what each takes, its defaults, and the limits deck lint holds it to. To pick a chart for a message, start at choosing a chart; this page assumes you know which one you want.

ChartKindUse when
<BigNumber>big-numberOne number is the message ("we cut onboarding to 3 days"); it beats a chart of one or two bars.
<StatRow>stat-rowTwo to four headline numbers that belong together, each with its change and an optional sparkline.
<Comparison>comparisonTwo values, before and after or A against B, where the difference is the message.
<BarChart>barCompare categories or rank them: sorted horizontal bars for long labels, columns for a few periods.
<LineChart>lineChange over time: one line, or one highlighted among muted context lines, each labeled at its end.
<AreaChart>areaA trend whose size matters (volume, backlog), or a composition over time when stacked.
<Slope>slopeChange between two points for several items: who rose and who fell, at a glance.
<Donut>donutPart of a whole when one or two parts matter ("more than half"), five slices at most.
<Pictogram>pictogramA proportion that should feel human: "3 in 10", risk, reach.
<Progress>progressProgress toward a goal, one bar or a short list, with the target marked.
<Waterfall>waterfallHow a total builds up or breaks down between two totals (a bridge: last year to this year).
<Funnel>funnelDrop-off through ordered stages, where the share that carries on between stages is the point.
<Scatter>scatterThe relationship between two measures, with the notable points labeled and an optional trend.
<MarketMovement>market-movementOne entity changes position over dated observations against peers on two fixed axes.
<Heatmap>heatmapA pattern across two dimensions (weekday by hour), with the cell that matters outlined.
<RetentionCohorts>retention-cohortsRetention by signup cohort and elapsed age, with the starting populations beside the rates.
<ProfitPool>profit-poolSegment revenue is a width and contribution margin a height, making area represent profit.
<Sparkline>sparklineA trend as context beside a number, in an aside or a sentence; StatRow and BigNumber have their own.
<Table>tableExact values, lookups or mixed units, about five rows by four columns, with the row that matters emphasized.

How to read an entry

Each entry starts with when to use the component, when to avoid it, the messages it is the right form for (single number, comparison, trend and so on), the shape of its data rows and its limits: the numbers deck lint holds it to, such as the most bars or series. coloredSeries in a limit is the size of the brand’s categorical palette, counted without the series a highlight mutes. Then a still of a published slide that uses it, its own props, a line naming the shared props it also takes, and an example in MDX. A prop name a chart does not take is refused with the closest name (“value is not a prop of BarChart; did you mean y?”).

How highlight, annotations and at work together is on highlights and annotations; BigNumber, StatRow, Progress and the other number components are explained on number components.

deck charts --json prints the same catalog, plus two fields this page does not show: nulls, how each chart draws a missing value (null, an empty CSV cell, text that is not a number), and accessibility. It also gives native, the PowerPoint chart deck export --pptx builds for the component: BarChart, Comparison, Progress, Waterfall and Funnel become bar charts; LineChart, Slope and Sparkline line charts; AreaChart an area chart; Donut a doughnut; Scatter a scatter chart; and Table a table. BigNumber, StatRow, Pictogram, Heatmap, RetentionCohorts, ProfitPool and MarketMovement have no native chart type.

<Table> here is the component; the table layout has its own page.

Shared props

Several charts take these props, with the same meaning in each. They are listed once here; each entry below names the ones it takes.

PropTypeDefaultDescription
atnumber—The step that reveals the whole figure; shown from the start when left out.
captionstring—The measure, unit and period above the plot ("Tickets per month, 2026"); the slide title states the takeaway.
sourcestring—Where the data comes from, set under the plot.
labelstring—The accessible name; built from the data when left out.
dataRow[] | string—Rows inline (data={[...]}), imported from a JSON or CSV file in the deck folder, or the name of a dataset in the slide's data: frontmatter. Two rows for the same category (and series) throw.
highlightstring | string[] | Highlight—What the chart is about. A series name, else a category (or max, min, first, last), several, or a Highlight object (see types.Highlight); everything else drops to the brand's context color. at turns it on at a step.
annotationsAnnotation[]—Callouts, reference lines, shaded ranges and brackets as objects with a type of callout, reference, range or bracket; their fields are under types as Annotation.callout, Annotation.reference, Annotation.range and Annotation.bracket. Each takes at.
format"number" | "standard" | "compact" | "currency" | "percent" | "delta" | "percent-delta" | "currency-delta" | FormatOptions—How values are written, over the brand's number style (compact, its currency and locale). Percent values are already in percent: 34 is 34%. digits fixes the fraction digits; without it currency in full writes cents or none (never one decimal), and a value under 1 keeps a significant digit.
unitstring—The unit after each value: "ms", "°C", "h", "trees". A scale unit (K, M, B) sits tight and keeps a currency sign: unit="M" with currency writes $1.2M.
labels"auto" | "all" | "highlight" | "ends" | "none"autoWhich values are labeled on the marks. auto labels every value when few enough to read (and drops the value axis), else the highlighted ones.
legendboolean—Force the legend on or off. Charts label series directly and show a legend only when they cannot (grouped and stacked bars); with a highlight the legend names the highlighted series and "everything else".

Components

BigNumber

Use when
One number is the message ("we cut onboarding to 3 days"); it beats a chart of one or two bars.
Avoid
A number without the comparison that gives it meaning; add from or context.
Shows
single number
Data
No rows: value (number or text), label, and from or delta for the change.
A slide that uses <BigNumber>: 2.4 million drops since the first loaf in 2022.
lookbook / chart-bignumber
PropTypeDefaultDescription
valuerequirednumber | string—The number, formatted by the brand, or text as it should read ("3 in 10").
labelrequiredstring—What it counts, in about six words.
contextstring—The comparison in a line: "down from 14 days in 2025".
fromnumber—The value it is compared with; the change is written as the delta.
deltastring—The change as written, when not computed from from.
tone"positive" | "negative" | "neutral"—Whether the change is good news; from better and the sign when left out.
better"up" | "down"upWhich way is good news, for the delta's color.
relativebooleantrue; false for values in percentWrite the change from from as a percentage of it, or in the unit (false). The default is a percentage, except for values in percent (unit "%" or format "percent"), whose change is written in points: "+7 pts". A change across zero is always written in the unit.
trendnumber[]—Recent values for a sparkline set against the figure.

Also takes the shared props at, caption, source, format and unit.

Example

<BigNumber
  value={3}
  unit="days"
  label="from signup to a live workspace"
  from={14}
  better="down"
  relative={false}
/>

StatRow

Use when
Two to four headline numbers that belong together, each with its change and an optional sparkline.
Avoid
More than four numbers (use a Table) or numbers in different units that the audience must compare.
Shows
single number, comparison
Data
No rows: stats, a list of RowStat (see types.RowStat).
Limits
stats 4
A slide that uses <StatRow>: Every number moved the right way this year.
lookbook / content-statrow
PropTypeDefaultDescription
statsrequiredRowStat[]—Two to four stats; set highlight: true on the one the point rests on.

Also takes the shared props at, caption, source, label, format and unit.

Example

<StatRow
  stats={[
    { value: 38, unit: '%', label: 'fewer tickets', highlight: true },
    { value: 2.5, unit: 'h', label: 'first reply', from: 14, better: 'down' },
  ]}
/>

Comparison

Use when
Two values, before and after or A against B, where the difference is the message.
Avoid
Several items changing between two points: use Slope.
Shows
comparison, change between two points
Data
No rows: from and to, each { value, label }. A value below zero is drawn from a zero line both bars share, towards the start edge, so a loss never reads as a gain.
A slide that uses <Comparison>: A drop costs us €2.34, a euro less than a year ago.
lookbook / chart-comparison
PropTypeDefaultDescription
fromrequired{ value: number; label: string }—The value before, or the first.
torequired{ value: number; label: string }—The value after, or the second: the one the point is about.
better"up" | "down"upWhich way is good news.
relativebooleantrue; false for values in percentWrite the change from from as a percentage of it, or in the unit (false). The default is a percentage, except for values in percent (unit "%" or format "percent"), whose change is written in points: "+7 pts". A change across zero is always written in the unit.

Also takes the shared props at, caption, source, label, format and unit.

Example

<Comparison
  from={{ value: 14, label: '2025' }}
  to={{ value: 2.5, label: 'October 2026' }}
  unit="h"
  better="down"
/>

BarChart

Use when
Compare categories or rank them: sorted horizontal bars for long labels, columns for a few periods.
Avoid
One or two bars (use BigNumber or Comparison), or before/after for many items (use Slope).
Shows
comparison, ranking, trend
Data
Rows with a category field and one or more number fields (wide), or category, series and value fields (long).
Limits
categories 12, seriesNeedingHighlight 3, categoriesNeedingHighlight 6, coloredSeries the brand palette size
A slide that uses <BarChart>: A rider makes 9.4 stops an hour, nearly twice a merchant's own van.
lookbook / chart-bar
PropTypeDefaultDescription
xstring—The category field; the first text field when left out.
ystring | SeriesInput | (string | SeriesInput)[]—The value field or fields, one series each (see types.SeriesInput); at reveals a series at a step. Every number field when left out.
seriesstring—For long data, the field whose values name the series (then y is the one value field).
orientation"auto" | "vertical" | "horizontal"autoColumns or bars; auto turns horizontal when labels do not fit under columns.
stackedbooleanfalseStack the series instead of grouping them.
sortboolean | "ascending" | "descending"falseSort by value, largest first for true; "Other" stays last.
minnumber—The axis minimum: above zero only with truncate (drawn with an axis break, the value axis and an "Axis starts at" note); lint reports it otherwise.
maxnumber—The axis maximum.
truncatebooleanfalseAllow min above zero, with a break across every bar.
reveal"series" | "categories" | RevealOption—Build the marks in steps, one series or one category per step. A string starts at step 1; the object form (see types.RevealOption) starts at from, a later step.

Also takes the shared props at, caption, source, label, data, highlight, annotations, format, unit, labels and legend.

Example

<BarChart
  data={regions}
  x="region"
  y="revenue"
  format="currency"
  sort
  highlight="EMEA"
/>

LineChart

Use when
Change over time: one line, or one highlighted among muted context lines, each labeled at its end.
Avoid
More than about five lines without a highlight (spaghetti), two measures on two axes, or a single point (use BigNumber).
Shows
trend
Data
Rows in time order with a time field and one number field per line (or long rows with series).
Limits
seriesNeedingHighlight 3, categoriesNeedingHighlight 6, coloredSeries the brand palette size, points 2
A slide that uses <LineChart>: Drops tripled in a year, and the Open Network beta bent the curve.
lookbook / chart-line
PropTypeDefaultDescription
xstring—The category field; the first text field when left out.
ystring | SeriesInput | (string | SeriesInput)[]—The value field or fields, one series each (see types.SeriesInput); at reveals a series at a step. Every number field when left out.
seriesstring—For long data, the field whose values name the series (then y is the one value field).
zerobooleanfalseStart the value axis at zero; otherwise it hugs the data and says where it starts.
minnumber—A fixed axis minimum.
maxnumber—A fixed axis maximum.
reveal"series" | "categories" | RevealOption—Build the marks in steps, one series or one category per step. A string starts at step 1; the object form (see types.RevealOption) starts at from, a later step.

Also takes the shared props at, caption, source, label, data, highlight, annotations, format, unit, labels and legend.

Example

<LineChart
  data={tickets}
  x="month"
  y={['2025', '2026']}
  highlight="2026"
  annotations={[{ type: 'callout', x: 'Jun', label: 'Redesign ships' }]}
/>
Range highlight, muting the rest of the line:
<LineChart
  data={tickets}
  x="month"
  y="2026"
  highlight={{ range: ['Jun', 'Sep'] }}
/>

AreaChart

Use when
A trend whose size matters (volume, backlog), or a composition over time when stacked.
Avoid
Comparing several series (use LineChart); only the bottom stacked series and the total read well.
Shows
trend, part-to-whole
Data
As LineChart.
Limits
seriesNeedingHighlight 3, coloredSeries the brand palette size, points 2
A slide that uses <AreaChart>: Same-hour drops tripled this year, faster than any other window.
lookbook / chart-area
PropTypeDefaultDescription
xstring—The category field; the first text field when left out.
ystring | SeriesInput | (string | SeriesInput)[]—The value field or fields, one series each (see types.SeriesInput); at reveals a series at a step. Every number field when left out.
seriesstring—For long data, the field whose values name the series (then y is the one value field).
stackedbooleanfalseStack the areas; put the series that matters first.
minnumber—Ignored below zero: areas start at zero.
maxnumber—A fixed axis maximum.
reveal"series" | "categories" | RevealOption—Build the marks in steps, one series or one category per step. A string starts at step 1; the object form (see types.RevealOption) starts at from, a later step.

Also takes the shared props at, caption, source, label, data, highlight, annotations, format, unit, labels and legend.

Example

<AreaChart
  data={replies}
  x="week"
  y="hours"
  unit="h"
  annotations={[{ type: 'reference', value: 4, label: 'Target' }]}
/>

Slope

Use when
Change between two points for several items: who rose and who fell, at a glance.
Avoid
Grouped bars for the same data; more than about ten items.
Shows
change between two points, comparison
Data
Rows with an item field and two number fields (from and to).
Limits
categories 10, categoriesNeedingHighlight 6
A slide that uses <Slope>: The three newest cities closed the gap by October.
lookbook / chart-slope
PropTypeDefaultDescription
xstring—The category field; the first text field when left out.
fromstring—The first value's field; the first number field when left out.
tostring—The second value's field.
fromLabelstring—The left column's heading.
toLabelstring—The right column's heading.
better"up" | "down"upWhich way is good news.
tonebooleanfalseColor items by better or worse instead of the lead color.
zerobooleanfalseStart the scale at zero.
annotationsAnnotation[]—Callouts on a point (type: 'callout', fields in types['Annotation.callout']) and reference lines across the plot (type: 'reference', fields in types['Annotation.reference']); ranges and brackets throw here. Each takes at.

Also takes the shared props at, caption, source, label, data, highlight, format and unit.

Example

<Slope
  data={teams}
  x="team"
  from="2025"
  to="2026"
  better="down"
  tone
  highlight={['Billing', 'Payroll']}
/>

Donut

Use when
Part of a whole when one or two parts matter ("more than half"), five slices at most.
Avoid
More than five slices or close values (use sorted bars); two donuts side by side.
Shows
part-to-whole
Data
Rows with a name field and a value field.
Limits
slices 5
A slide that uses <Donut>: Two kinds of shop pay 59%.
lookbook / split-donut
PropTypeDefaultDescription
xstring—The category field; the first text field when left out.
ystring—The value field; the first number field when left out.
center"share" | "total" | "none" | string—The figure in the centre.
centerLabelstring—The line under the centre figure.

Also takes the shared props at, caption, source, label, data, highlight, format and unit.

Example

<Donut
  data={channels}
  x="channel"
  y="conversations"
  highlight="Chat"
  centerLabel="on chat"
/>

Pictogram

Use when
A proportion that should feel human: "3 in 10", risk, reach.
Avoid
Precise shares or totals above 100 units.
Shows
part-to-whole, single number
Data
No rows: value filled units of total.
Limits
total 100
A slide that uses <Pictogram>: Given the choice, people pick the hour.
lookbook / split-pictogram
PropTypeDefaultDescription
valuerequirednumber—How many units are filled.
totalnumber10How many units there are, at most 100.
labelrequiredstring—What the filled units are.
shape"person" | "circle" | "square"personThe unit's shape.
columnsnumber—Units per row; chosen from the room when left out (10 or 20 for totals divisible by ten).

Also takes the shared props at, caption and source.

Example

<Pictogram value={3} total={10} label="questions now end in the help centre" />

Progress

Use when
Progress toward a goal, one bar or a short list, with the target marked.
Avoid
Gauges and speedometers.
Shows
single number, part-to-whole
Data
No rows: value, max, target, label, or items (see types.ProgressItem).
A slide that uses <Progress>: €8M of the €14M is committed.
lookbook / chart-progress
PropTypeDefaultDescription
valuenumber—How far it has come, for a single bar.
maxnumber100The whole.
targetnumber—The goal, marked on the track.
labelstring—What is measured, for a single bar.
itemsProgressItem[]—Several bars instead of one.

Also takes the shared props at, caption, source, format and unit.

Example

<Progress
  value={31}
  target={40}
  unit="%"
  label="of questions solved by self-serve"
/>

Waterfall

Use when
How a total builds up or breaks down between two totals (a bridge: last year to this year).
Avoid
A stacked bar with many colors.
Shows
flow, comparison
Data
Rows with a step name and a change; total rows (named in totals) hold a level, or none for the running total.
Limits
categories 10
A slide that uses <Waterfall>: Batching cut €0.58 a drop, more than any other change.
lookbook / chart-waterfall
PropTypeDefaultDescription
xstring—The category field; the first text field when left out.
ystring—The change field; the first number field when left out.
totalsstring[]—The steps that are totals; the first step when left out.
better"up" | "down"upWhich way is good news, for rises and falls ("down" for costs). Steps keep their tone colors; highlight mutes the changes it does not name, never the totals.
reveal"series" | "categories" | RevealOption—Build the bridge in steps: the totals and the step names show from the start, then "categories" brings in one change per step and "series" all of them at once. A string starts at step 1; the object form (see types.RevealOption) starts at from.

Also takes the shared props at, caption, source, label, data, highlight, annotations, format and unit.

Example

<Waterfall
  data={bridge}
  x="step"
  y="cost"
  totals={['2025', '2026']}
  better="down"
  format="currency"
/>

Funnel

Use when
Drop-off through ordered stages, where the share that carries on between stages is the point.
Avoid
Unordered categories (use BarChart), or stages that grow (deck lint warns).
Shows
flow
Data
Rows in stage order with a stage name and a count.
Limits
categories 7
A slide that uses <Funnel>: Four in ten sign-ups never connect their shop.
lookbook / chart-funnel
PropTypeDefaultDescription
xstring—The category field; the first text field when left out.
ystring—The count field.
reveal"series" | "categories" | RevealOption—Build the funnel in steps: "categories" brings in one stage per step with the share that carried on into it, "series" the whole funnel at once. A string starts at step 1; the object form (see types.RevealOption) starts at from.

Also takes the shared props at, caption, source, label, data, highlight, format and unit.

Example

<Funnel data={journey} x="stage" y="people" highlight="Opened an article" />

Scatter

Use when
The relationship between two measures, with the notable points labeled and an optional trend.
Avoid
Dual-axis lines for two measures.
Shows
correlation, distribution
Data
Rows with two number fields and a name field (and a group field for series).
A slide that uses <Scatter>: The denser the hub, the cheaper the drop.
lookbook / chart-scatter
PropTypeDefaultDescription
xstring—The x field; the first number field.
ystring—The y field; the second number field.
labelstring—The field naming each point, for highlights, callouts and labels (not the accessible name here).
seriesstring—The field grouping points into colored series.
xLabelstring—What x measures, at the end of the x axis.
yLabelstring—What y measures, at the top of the y axis.
xFormatFormat—How x values are written (format and unit are y's).
xUnitstring—The unit after x values.
trendbooleanfalseDraw the least-squares trend line, clipped to the plot.
zerobooleanfalseStart both axes at zero.
annotationsAnnotation[]—Callouts on a point (type: 'callout', fields in types['Annotation.callout']) and reference lines across the plot (type: 'reference', fields in types['Annotation.reference']); ranges and brackets throw here. Each takes at.

Also takes the shared props at, caption, source, data, highlight, format and unit.

Example

<Scatter
  data={squads}
  x="hours"
  y="csat"
  label="squad"
  trend
  highlight={['Billing']}
  xLabel="Hours to resolve"
  yLabel="Rated good, %"
/>

Heatmap

Use when
A pattern across two dimensions (weekday by hour), with the cell that matters outlined.
Avoid
Exact values to compare (use a Table).
Shows
distribution, comparison
Data
Long rows with a column field, a row field and a value field.
A slide that uses <Heatmap>: Friday from four to six is the busiest two hours of the week.
lookbook / chart-heatmap
PropTypeDefaultDescription
xstring—The column field.
ystring—The row field.
valuestring—The value field.
highlight{ x?, y? } | { x?, y? }[]—Cells (or a whole row or column) to outline.
scale[string, string]["Fewer","More"]The words at the ends of the scale legend.

Also takes the shared props at, caption, source, label, data, format and unit.

Example

<Heatmap
  data={load}
  x="hour"
  y="day"
  value="tickets"
  highlight={{ x: '9–12', y: 'Mon' }}
/>

Sparkline

Use when
A trend as context beside a number, in an aside or a sentence; StatRow and BigNumber have their own.
Avoid
A trend that is the message (use LineChart).
Shows
trend
Data
values (numbers, oldest first) or rows with one number field.
A slide that uses <Sparkline>: Rider turnover fell every month this year.
lookbook / content-sparkline
PropTypeDefaultDescription
valuesnumber[]—The values, oldest first.
dataRow[] | string—Rows instead of values.
ystring—The field of the rows to draw.
highlight"last" | "max" | "min"lastThe point to mark and label.
valuebooleantrueWrite the marked value at the end.
heightnumber80The height in canvas pixels.

Also takes the shared props at, caption, source, label, format and unit.

Example

<Sparkline values={[9, 7.2, 5.8, 4.9, 3.6, 2.5]} unit="h" />

Table

Use when
Exact values, lookups or mixed units, about five rows by four columns, with the row that matters emphasized.
Avoid
A pattern across many values (use a chart); the full dataset (put it in the appendix).
Shows
exact values, comparison
Data
Rows; columns picks and labels fields (see types.TableColumn). Numbers are written exactly (no rounding) unless a format sets digits; pass numbers, not text such as "31%", so they align and format.
Limits
rows 8
A slide that uses <Table>: Pharmacies grew fastest, four times in a year.
lookbook / chart-table
PropTypeDefaultDescription
columns(string | TableColumn)[]—The columns in order; every field when left out.
highlight{ row?, column?, cell? }—Rows (by first-column text or index), a column or cells, marked the brand's way.

Also takes the shared props at, caption, source, label, data and format.

Example

<Table
  data={plans}
  columns={['plan', { key: 'cost', format: 'currency', bar: true }]}
  highlight={{ row: 'Team' }}
/>

RetentionCohorts

Give each cohort its starting size and a row for each observed age. Write 82 for 82%. A zero prints as 0%, while an unobserved age stays blank. Retention cohorts example

Use when
Retention by signup cohort and elapsed age, with the starting populations beside the rates.
Avoid
Calendar-period activity (use Heatmap or LineChart).
Shows
comparison, trend
Data
Long rows with a cohort name, a whole elapsed age, a starting population and retention in percent.
A slide that uses <RetentionCohorts>: Month-three retention rose from 82% to 91%.
lookbook / chart-retention-cohorts
PropTypeDefaultDescription
cohortstringcohortThe cohort name field.
agestringageThe elapsed age field, a nonnegative whole number.
ageUnitstringMonthThe heading prefix for each age.
valuestringretainedThe retention field. Pass 82 for 82%.
sizestringsizeThe starting population field.
sizeLabelstringSizeThe heading of the starting population column.
focus{ cohort: string; age: number; from?: number }—Outline the cohort at from, then compare cohorts at age one step later. Leave out from for a static comparison at age.

Also takes the shared props at, caption, source, label and data.

Example

<RetentionCohorts
  data={retention}
  focus={{ cohort: "April", age: 3, from: 1 }}
/>

ProfitPool

Use the same currency and scale for every segment’s revenue. Width represents revenue, height measures the contribution margin from zero, and area corresponds to the segment’s contribution profit or loss. Profit pool example

Use when
Segment revenue is a width and contribution margin a height, making area represent profit.
Avoid
Profit is the only measure that matters (use BarChart).
Shows
part-to-whole, ranking, comparison
Data
One row per segment with positive revenue and a margin in percent. A margin may be negative.
A slide that uses <ProfitPool>: Pharmacies contribute more profit than grocers.
lookbook / chart-profit-pool
PropTypeDefaultDescription
segmentstringsegmentThe segment name field.
revenuestringrevenueThe revenue field. All rows must use the same currency and scale.
marginstringmarginThe contribution margin field. Pass 25 for 25%.
highlightstring—The segment to emphasize. Defaults to the largest profit contributor.
buildFromnumber—The margin step. Before it the chart shows revenue only, and the next step highlights profit.

Also takes the shared props at, caption, source, label, data, format and unit.

Example

<ProfitPool
  data={segments}
  highlight="Memberships"
  format="currency"
  buildFrom={1}
/>

MarketMovement

Give each observation an ISO date in YYYY-MM-DD form. highlight names the entity whose positions form a trail. Each peer appears at the dates for which it has data. Market movement example

Use when
One entity changes position over dated observations against peers on two fixed axes.
Avoid
Movement in only one measure (use LineChart) or a single snapshot (use Scatter).
Shows
trend, change between two points, correlation
Data
Long rows with an entity name, ISO calendar date and two numeric measures.
A slide that uses <MarketMovement>: Wrenhaul became more reliable as prices fell.
lookbook / chart-market-movement
PropTypeDefaultDescription
entitystringentityThe entity name field.
datestringdateThe YYYY-MM-DD date field.
xrequiredstring—The horizontal measure field.
yrequiredstring—The vertical measure field.
xLabelstring—The horizontal axis title.
yLabelstring—The vertical axis title.
xFormatFormat—The horizontal axis number format. The shared format is for y.
highlightrequiredstring—The entity whose positions form the trail.
buildFromnumber—The step for the second date. Each later date adds one step.

Also takes the shared props at, caption, source, label, data and format.

Example

<MarketMovement
  data={market}
  x="density"
  y="onTime"
  highlight="Wrenhaul"
  buildFrom={1}
/>

Types

Several props take objects. Their fields:

RowStat

FieldTypeDefaultDescription
valuerequirednumber | string—The number, formatted by the brand, or text as it should read.
labelrequiredstring—What it counts, in a few words.
deltastring—The change as written ("+12% since 2025"); computed from from when that is given.
fromnumber—The value it is compared with, for a computed delta.
relativebooleantrue; false for values in percentWrite the change from from as a percentage of it, or in the unit (false). The default is a percentage, except for values in percent (unit "%" or format "percent"), whose change is written in points: "+7 pts". A change across zero is always written in the unit.
better"up" | "down"upWhich way is good news, for a computed delta.
tone"positive" | "negative" | "neutral"—Whether the change is good news; from better and the sign when left out.
trend"up" | "down" | "flat"—Which way the change points, for a delta written without a sign.
sparknumber[]—Recent values, oldest first, drawn as a sparkline under the label.
highlightboolean—The stat the point rests on: an accent rule and the accent color.
formatFormat—How this stat's number is written, over the row's.
unitstring—This stat's unit, over the row's; it resets the row's format style unless it is a scale (K, M, B).

ProgressItem

FieldTypeDefaultDescription
labelrequiredstring—What is measured.
valuerequirednumber—How far it has come; past max the track runs on and marks where the whole ended.
maxnumber100The whole.
targetnumber—The goal, marked on the track.
unitstring—This bar's unit, over the figure's; it resets the figure's format style.
formatFormat—How this bar's numbers are written, over the figure's.
highlightboolean—The bar the point is about, when there are several.

TableColumn

FieldTypeDefaultDescription
keyrequiredstring—The field.
labelstring—The header; the field name when left out.
formatFormat—How the column's numbers are written; exact (as many digits as the data has) when left out.
unitstring—The unit after each number.
barbooleanfalseDraw an in-cell bar to scale from zero.
align"left" | "right"—The alignment; numbers right, text left when left out.

SeriesInput

FieldTypeDefaultDescription
fieldrequiredstring—The field that holds the series' values.
labelstring—The name the chart labels the series with; the field name when left out.
atnumber—The step that reveals the series.

FormatOptions

FieldTypeDefaultDescription
style"number" | "currency" | "percent"—percent values are in percent already (34 is 34%); currency adds the currency sign.
notation"standard" | "compact"—compact writes 1.2M; standard every digit.
currencystring—An ISO 4217 currency code, such as EUR.
digitsnumber—Exactly this many fraction digits, 0 to 4.
signedboolean—Always show the sign, for changes: +12.

Highlight

FieldTypeDefaultDescription
seriesstring | string[]—Series to keep in color.
categorystring | string[]—Categories to keep in color (or max, min, first, last).
point{ series?, category } | { series?, category }[]—Single points.
range[string, string]—A stretch of categories, [first, last], both ends inclusive. On a line chart it covers the segments between consecutive highlighted points, so the line is drawn heavier and in color from the first category to the last; every segment outside it, including the one after the last category, stays muted. A range of one category colors no segment (use category for a single point).
atnumber—The step that turns the highlight on; the chart shows its own colors before it.

RevealOption

FieldTypeDefaultDescription
byrequired"series" | "categories"—What each step adds: one series, or one category, in data order.
fromrequirednumber—The step the first one comes in at, a whole number of 1 or more (step 0 is the slide before any step); each next one comes a step later. Series with their own at keep it.

Annotation.callout

FieldTypeDefaultDescription
typerequired"callout"—Tells annotations apart.
xrequiredstring | number—The category (a point name, on a Scatter) it points at.
labelrequiredstring—The text, a few words: "Redesign ships".
seriesstring—The series whose point it marks; the highlighted or first series (on a Slope, the to field).
ynumber—A value to point at instead of the series' value.
atnumber—The step that reveals it.

Annotation.reference

FieldTypeDefaultDescription
typerequired"reference"—Tells annotations apart.
valuerequirednumber—The value on the value axis.
labelstring—The text at its end, such as "Target"; the formatted value is added after it.
atnumber—The step that reveals it.

Annotation.range

FieldTypeDefaultDescription
typerequired"range"—Tells annotations apart.
fromrequiredstring | number—The first category of the span.
torequiredstring | number—The last category of the span.
labelstring—The text above the span.
atnumber—The step that reveals it.

Annotation.bracket

FieldTypeDefaultDescription
typerequired"bracket"—Tells annotations apart.
fromrequiredstring | number—The category of the first point.
torequiredstring | number—The category of the second point.
seriesstring—The series; the highlighted or first series.
labelstring—The text; the change between the two values when left out.
relativebooleantrueWrite the change as a percentage of the first value, or in the unit. A change across zero (or from near zero) is always in the unit.
better"up" | "down"upWhich way is good news, for the label's color.
atnumber—The step that reveals it.

charts.json · types

Type to search…

↑↓ navigate↵ selectEsc close