Share
Save
data
bind
style
animate
AI
code
info
settings
EN
Chart Info

Stacked Column Chart

A stacked column chart piles several series on top of each other in each column. The full height shows the total, while each colored segment shows how much one part contributes, so you can read both the overall size and its composition in one graph.

To create one, paste or upload your table, bind the label column and the value columns, and makechart.io stacks them for you. Adjust the palette, legend and axes in the Style panel, then export the data visualization as SVG or PNG.

Set up data
Paste, upload or pick sample data to make this chart.

Data format

One row per column. The first column holds the labels; every numeric column you bind to size becomes one layer of the stack, in the order they are bound.

FieldType
name
required
Text, category or order
Label of each column, such as a year or a region, shown on the horizontal axis.
size
required
Number (two or more columns)
Values of each part. Each bound column becomes one colored segment.
Example
nameSolarWindHydro
20211285
20221595
202319116
202424126

When to use

  • Showing how a total is made up of a few parts, such as revenue by product line per year.
  • Comparing totals across categories while still showing the contribution of each part.
  • Tracking how the composition of a total changes over a few periods.

When not to use

  • Comparing individual parts precisely; only the bottom segment shares a common baseline. Use a grouped column chart instead.
  • More than about five or six series; the stack turns into thin, hard to tell apart slices.
  • Data with negative values, which makes stacked segments confusing.

Tips

  • Turn on percent in the Style panel to make every column 100% tall and compare proportions only.
  • Set multiple to group to switch to side-by-side columns, or type to bar for horizontal stacked bars.

Related charts

堆積柱狀圖

堆積柱狀圖(堆疊直條圖)把多組數列一層層疊在同一根柱子上。整根柱子的高度代表總量,每一段顏色代表某個部分的貢獻,一張圖就能同時看出總量大小與組成結構。

製作圖表時只要貼上或上傳表格,對應標籤欄與各個數值欄,makechart.io 就會自動堆疊。再到「樣式」面板調整色盤、圖例與座標軸,即可匯出 SVG 或 PNG。

設定資料
貼上、上傳資料,或用範例資料開始製作這張圖表。

資料格式

每一列是一根柱子。第一欄放標籤;每個對應到 size 的數值欄位都是堆疊中的一層,順序依對應的先後。

欄位型態
name
必填
文字、分類或順序
每根柱子的標籤,例如年份或地區,顯示在橫軸上。
size
必填
數值(兩欄以上)
各部分的數值,每個欄位會成為一段不同顏色的區塊。
範例
name太陽能風力水力
20211285
20221595
202319116
202424126

適合的使用時機

  • 呈現總量由哪幾個部分組成,例如每年各產品線的營收。
  • 比較各類別的總量,同時保留每個部分的貢獻。
  • 觀察幾個時間區段中,組成比例如何變化。

不適合的情況

  • 需要精確比較各部分的大小時:只有最底層有共同基準線,改用分組柱狀圖比較好。
  • 數列超過五、六組,每段會變得很薄而難以分辨。
  • 資料含有負值,堆疊後容易讓人誤解。

使用技巧

  • 在「樣式」面板打開 percent,每根柱子都會撐滿 100%,只比較比例。
  • 把 multiple 改成 group 變成並排柱狀圖,或把 type 改成 bar 變成橫向堆積長條圖。

相關圖表

bind
Auto Bind
Clear
no dimension
Reset
no style
no matching style

s
%
code
Loading