Slope chart
Before and after, one line per item.
Definition · Updated Nov 2, 2026
A slope chart joins each item's value at two points in time with a straight line, so risers and fallers show by the angle. Use it for before and after comparisons such as conversion by channel this month against last month.
Pay once. Every update included.
Live preview
Sample data: store conversion by channel, September to October, email 4.1% to 5.2%
- Data shape
- Two values per item, at two points
- Good for
- Before and after, month against month
- Avoid when
- There are more than two points in time
- Sizes
- XS, S, M and L, re-laid out from the data
Anatomy
Inspect it like the Figma file.
The same layers, names and tokens as the component. Select one to read its size, fill and style.
Layers
044 / Slope
- Layer
- line · social
- Type
- Vector
- Size
- 546 × 15
- Stroke
- status/danger
- Group
- Marks · 15
Layers
044 / Slope
- Layer
- line · email
- Type
- Vector
- Size
- 226 × 37
- Stroke
- status/success
- Group
- Marks · 15
Layers
044 / Slope
- Layer
- line · email
- Type
- Vector
- Size
- 65 × 30
- Stroke
- status/success
- Group
- Marks · 15
Sizes
Re-laid out, never scaled.
The same data at XS, S, M and L. Every size is redrawn from the data, so text and line weights never shrink.
M against S
Width360 px480 px
Plot328 px440 px
Labels1717
Marks1515
Height212 px246 px
Same tokens at every size: text styles, 1 px lines and mark radius stay put.
When to use
What changed between two points.
Three signs it fits, and three signs another type fits better.
Code and Figma
One name in Figma and in code.
Every Figma property is a prop with the same name and values. One command installs it.
Figma
chart/044-slope-conversion
npx shadcn add @chartory/slopeimport { Slope } from "@/components/chartory/slope"import { channelConversion } from "./channel-conversion"export function ChannelConversion() { return ( <Slope data={channelConversion} size="m" legend={true} /> )}Hearth widget
Slope as a widget.
The chart in a Hearth card with a hero number and two blocks. One token set, light and dark.
EmberPreset
ChartoryDefault preset
Pick the blocks, the size and the preset for your own widget.
Read the Hearth widget docsFAQ
Slope chart questions.
What people ask before they put a slope in a dashboard.
Something else?
hello@usechartory.comBy colour as well as angle: improved and declined each take their own colour, named in the legend. In the sample, social is the one that declined (2.2% to 1.9%).
At both ends of each line, with the channel name, so every before and after can be read without an axis.
One data object in the sample’s shape: two values per item, at two points. The docs page lists every field and links its JSON Schema; the sample data comes with the component, so you can start from it and swap in your own.
Series take the preset’s data colours in order, and states such as up, down or warning take its status colours. Change the preset in Figma or in code to recolour every chart at once.
XS, S, M and L, in light and dark. Each size is laid out again from the data, so text and lines keep their size.
Yes. It plays in when it scrolls into view, and when the data changes every mark moves from its old place to its new one. With reduced motion on, it does not move.
Yes. The React component is free in the public registry in Hearth, no token needed; Signal comes with Code and Complete. The Figma component comes with Figma and Complete.
Ask for it by name. The MCP server tells the agent what data it needs and runs the same command: npx shadcn add @chartory/slope. You review the diff.
Related types
Other ways to show compare items.
The same question, a different shape of answer. Every type ships in Figma and in code.
Same family
Compare items
Rank, gap and change between products, teams or regions.