How to make a slope chart
-
Paste your data
Paste cells from a spreadsheet or upload a CSV with a text column for Category, a number column for Before and a number column for After.
-
Check the columns
The slope chart picks its columns for you. Change any of them under Data.
-
Style it and download
Under Style, pick a look, colours, background and size, add a title and source, then download SVG or PNG.
What is a slope chart?
A slope chart connects each category's value at two points, such as two years, with a straight line between two vertical axes, coloured by whether it rose or fell.
How to read it
Each line runs from its before value on the left to its after value on the right, so steep lines show big changes and crossing lines show swaps in order. Colour separates increases from decreases.
When to use it
Show how each category moved between two points. It is one of the ranking charts, which show the order of things and how it changes.
When the gap between two values matters more than the direction, use a Dumbbell. For rankings across many periods, use a Bump chart.
Tips for a better slope chart
- Keep it to about 15 categories or fewer before the labels collide.
- Use it for exactly two points in time; more periods belong in a Bump chart or Line chart.
- Name the two columns clearly, since their headings become the axis titles.
Data you need
One row per item with a text column for Category, a number column for Before and a number column for After. Column names can be anything; the chart maker matches columns by type, and you can change the match under Data.
| Framework | 2020 | 2025 |
|---|---|---|
| React | 35.9 | 41.6 |
| jQuery | 43.3 | 21.4 |
| Angular | 25.1 | 17.1 |
| Vue | 17.3 | 17.6 |
| Next.js | 4.2 | 17.9 |
| Express | 23.0 | 19.9 |
| Svelte | 2.8 | 7.2 |
| Django | 14.2 | 12.0 |
Other charts for the same data
More ranking charts
Questions, answered
- What is a slope chart?
- A slope chart connects each category's value at two points, such as two years, with a straight line between two vertical axes, coloured by whether it rose or fell.
- How do you read a slope chart?
- Each line runs from its before value on the left to its after value on the right, so steep lines show big changes and crossing lines show swaps in order. Colour separates increases from decreases.
- How do I make a slope chart?
- Paste your data into the chart maker with a text column for Category, a number column for Before and a number column for After. The slope chart draws as you type. Then pick a look and a size and download it as SVG or PNG.
- When should I use a slope chart?
- Show how each category moved between two points. It belongs to the ranking family of charts, which show the order of things and how it changes. When the gap between two values matters more than the direction, use a Dumbbell. For rankings across many periods, use a Bump chart.
- Is this slope chart maker free?
- Yes. It is free with no sign-up, your data stays in your browser, and you can download the slope chart as SVG or PNG.