滑坡圖
滑坡圖(Slopegraph,台灣也常稱為斜率圖)把兩欄(或幾欄)數值左右並排,再用線把同一個項目連起來。看斜率就懂:往上是增加、往下是減少,線條交叉代表名次互換。
它是呈現「前後對照」最精簡的圖表,例如兩次調查或兩屆選舉的比較。在 makechart.io 貼上或上傳表格、對應名稱與數值欄位,就會自動在兩端標上名稱,並依增減替每條線上色,線上做圖不必再手動標註。
設定資料
貼上、上傳資料,或用範例資料開始製作這張圖表。
資料格式
每一列是一個項目。每個時間點(或情境)各放一個數值欄位,欄位標題會顯示在上方。兩欄是最常見的用法,欄位越多步驟就越多。
| 欄位 | 型態 |
|---|
name必填 | 文字 項目名稱,例如國家、產品或預算項目,會標在線條的兩端。 |
value必填 | 數值(兩欄以上) 各時間點的數值,一個時間點一欄,依由左到右的順序。 |
category選填 | 分類 選填的分組,例如地區或類型,可以用來依群組替線條上色。 |
範例
| 項目 | 類別 | 2015 | 2025 |
|---|
| 居住 | 必要支出 | 24.1 | 29.4 |
| 飲食 | 必要支出 | 17.3 | 15.8 |
| 醫療 | 必要支出 | 7.1 | 9.8 |
| 外食 | 生活品味 | 6.2 | 5.1 |
| 旅遊 | 生活品味 | 3.6 | 4.6 |
適合的使用時機
- 比較同一批項目在兩個時間點的差異,例如政策實施前後。
- 呈現哪些項目上升、哪些下降、哪些名次有變動。
- 項目數量適中,大約五到二十個,兩端放得下標籤的時候。
不適合的情況
- 時間點很多的長期資料,折線圖能呈現完整趨勢。
- 項目太多而且數值相近:標籤會互相擠壓、線條重疊。
- 只在意每個項目的差距大小時,啞鈴圖可能更好讀。
使用技巧
- 在「樣式」面板把 coloring(著色)的 mode(模式)從 trend 改成 category 或 palette;用 emphasis(強調)的 mode 可以強調變化最大的項目或指定的名稱。
- 把 scale(比例)的 mode 改成 rank,就能比較名次而不是數值。
相關圖表
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.
Set up data
Paste, upload or pick sample data to make this chart.
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. |
Example
| 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.
Related charts