Slopegraph
A slopegraph places two (or a few) columns of values side by side and connects each item with a line. The slope tells the story at a glance: lines going up mean an increase, lines going down a decrease, and crossing lines show items swapping places.
It is a compact way to create a graph of before-and-after changes, such as two survey years or two elections. On makechart.io, paste or upload your table, bind the name and value columns, and the chart maker labels both ends and colors each line by its trend automatically.
Data format
One row per item. Put each point in time (or each scenario) in its own numeric column; the column headers become the labels at the top. Two columns is the classic form, and more columns add more steps.
| Field | Type |
|---|---|
namerequired | Text Item label, such as a country, product or budget item. Shown at both ends of its line. |
valuerequired | Number (two or more columns) Value at each point in time, one column per point, in left to right order. |
categoryoptional | Category Optional group, such as region or type. Can be used to color lines by group. |
| item | group | 2015 | 2025 |
|---|---|---|---|
| Housing | Essentials | 24.1 | 29.4 |
| Food | Essentials | 17.3 | 15.8 |
| Healthcare | Essentials | 7.1 | 9.8 |
| Dining Out | Lifestyle | 6.2 | 5.1 |
| Travel | Lifestyle | 3.6 | 4.6 |
When to use
- Comparing the same items at two points in time, such as before and after a policy change.
- Showing which items went up, which went down, and which changed rank.
- A moderate number of items, roughly five to twenty, where labels can sit at both ends.
When not to use
- Long time series with many points; a line chart shows the full trend.
- Too many items with similar values; the labels collide and lines overlap.
- When you only care about the size of each gap; a dumbbell chart can be easier to read.
Tips
- In the Style panel, set coloring mode to category or palette instead of trend, and use emphasis mode to highlight the largest changes or chosen names.
- Set scale mode to rank to compare positions instead of values.