Skip to content

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

Conversion by channel, September to OctoberStore conversion by channel: 4 of 5 channels improved, Email from 4.1% to 5.2%; Social fell from 2.2% to 1.9%.SEPOCT4.1%Email5.2%3.2%Search3.6%2.7%Direct3.1%2.2%Social1.9%1.6%Affiliate2.3%IMPROVEDDECLINED
Conversion by channel, September to October
ChannelSeptemberOctober
Email4.1%5.2%
Search3.2%3.6%
Direct2.7%3.1%
Social2.2%1.9%
Affiliate1.6%2.3%

Sample data: store conversion by channel, September to October, email 4.1% to 5.2%

Size
Legend
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

chart/044-slope-conversion
plot · slope
Layer
line · social
Type
Vector
Size
546 × 15
Stroke
status/danger
Group
Marks · 15

Layers

044 / Slope

chart/044-slope-conversion
plot · 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.

Are there exactly two points?

More periods to follow.

Yes: Keep the slope

Is the change the point?

Two values compared, not a change.

Yes: Keep the slope

Is it a few items?

Many items cross into a tangle.

Yes: Keep the slope

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

size
legend
Property = propValuesDefault
size"xs" · "s" · "m" · "l""xs"
legendtrue · falsetrue
color"cat-1" · "cat-2" · "cat-3" · "cat-4""cat-1"
npx shadcn add @chartory/slope
slope.tsx
import { 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.

Code
Get the code

EmberPreset

ChartoryDefault preset

Pick the blocks, the size and the preset for your own widget.

Read the Hearth widget docs

FAQ

Slope chart questions.

What people ask before they put a slope in a dashboard.

Something else?

hello@usechartory.com
  • By 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%).

Related types

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.