100%堆積長條圖
100% 堆積長條圖把每一條橫向長條都撐到同樣的長度,再依比例切成幾段。它呈現的不是絕對數量而是占比,可以一眼看出各類別的組成差異,例如不同年齡層對問卷題目的回答分布。
makechart.io 會自動把原始數字換算成百分比,不需要先自己計算占比。貼上或上傳資料、對應欄位、調整顏色與標籤,就能把這份資料視覺化下載成 SVG 或 PNG。
設定資料
貼上、上傳資料,或用範例資料開始製作這張圖表。
資料格式
每一列是一條長條。第一欄放類別標籤;每個對應到 size 的數值欄位是一個組成部分。直接填原始數量即可,每一列會自動換算成 100%。
| 欄位 | 型態 |
|---|
name必填 | 文字、分類或順序 每條長條的標籤,例如年齡層或國家,顯示在縱軸上。 |
size必填 | 數值(兩欄以上) 各部分的數量,會換算成占該列總和的比例。 |
範例
| name | 同意 | 普通 | 不同意 |
|---|
| 18-29歲 | 120 | 60 | 40 |
| 30-44歲 | 98 | 70 | 52 |
| 45-64歲 | 75 | 66 | 79 |
| 65歲以上 | 50 | 48 | 92 |
適合的使用時機
- 比較多個類別的組成結構,例如各族群的問卷回覆。
- 各類別總量差異很大,但你只關心比例時。
- 在一張圖裡呈現多個群組的量表題或市占率資料。
不適合的情況
- 總量本身很重要時,這種圖會把總量藏起來,改用一般的堆積長條圖。
- 組成部分很多又很小,細碎的區塊難以閱讀與標示。
- 只有一個類別時,圓餅圖或甜甜圈圖更簡單明瞭。
使用技巧
- 在「樣式」面板關掉 percent,就會回到顯示絕對數值的堆積長條圖。
- 把 type 改成 column,就能把 100% 堆積長條改為直式呈現。
相關圖表
100% Stacked Bar Chart
A 100% stacked bar chart stretches every horizontal bar to the same full length and divides it into segments by share. Instead of absolute amounts, it shows proportions, so you can see at a glance how the mix differs between categories, such as survey answers by age group.
makechart.io converts your raw numbers into percentages automatically, so there is no need to calculate shares yourself. Paste or upload your data, bind the columns, adjust colors and labels, and download this data visualization as SVG or PNG.
Set up data
Paste, upload or pick sample data to make this chart.
Data format
One row per bar. The first column holds the category labels; each numeric column bound to size is one part. Raw counts or amounts are fine: each row is scaled to 100% for you.
| Field | Type |
|---|
namerequired | Text, category or order Label of each bar, such as an age group or a country, shown on the vertical axis. |
sizerequired | Number (two or more columns) Amount of each part. Values are converted to the share of the row total. |
Example
| name | Agree | Neutral | Disagree |
|---|
| 18-29 | 120 | 60 | 40 |
| 30-44 | 98 | 70 | 52 |
| 45-64 | 75 | 66 | 79 |
| 65+ | 50 | 48 | 92 |
When to use
- Comparing the composition of several categories, such as survey responses by group.
- When totals differ a lot between categories but you only care about the mix.
- Showing Likert-scale or market share data for many groups in one chart.
When not to use
- When the totals themselves matter; this chart hides them. Use a regular stacked bar chart instead.
- Many small parts; thin segments are hard to read and label.
- A single category; a pie or donut chart tells the same story more simply.
Tips
- Turn percent off in the Style panel to go back to a stacked bar chart with absolute values.
- Set type to column to draw the same 100% stacked bars vertically.
Related charts