圓餅圖
圓餅圖呈現「整體被分成哪些部分」。每一塊扇形代表一個類別,角度大小對應它占總量的比例,讀者一眼就能看出哪一部分最大。
makechart.io 是免費的線上圖表產生器:貼上表格或上傳 CSV / Excel 檔,對應好欄位,在「樣式」面板調整配色、圖例與標籤,就能下載 SVG、PNG,或用連結分享,不需要安裝任何軟體就能製作圖表。
設定資料
貼上、上傳資料,或用範例資料開始製作這張圖表。
資料格式
每一列是一塊扇形:一欄名稱、一欄正數數值。比例會依總和自動計算,數值加起來不必等於 100。
| 欄位 | 型態 |
|---|
name必填 | 文字、分類或順序 每塊扇形的標籤,例如產品、政黨。 |
value必填 | 數值 扇形的大小,請用正數;每塊的比例是 數值 ÷ 總和。 |
category選填 | 分類(可一或多欄) 選填的分組。每對應一個欄位就多一圈,圓餅圖會變成多層的旭日圖。 |
範例
| name | value |
|---|
| 蘋果 | 12 |
| 柳丁 | 3 |
| 香蕉 | 6 |
| 水蜜桃 | 9 |
| 芭樂 | 14 |
適合的使用時機
- 呈現單一整體的組成,例如預算分配、市占率。
- 類別不多的時候,最好不超過五、六塊。
- 其中一兩塊明顯特別大,而這正是你想強調的重點。
不適合的情況
- 比較彼此很接近的數值:角度不容易精確比較,這時長條圖比較清楚。
- 類別很多、有許多小項目:扇形太細會看不清楚,可以合併成「其它」或改用長條圖。
- 數值加起來不構成一個整體,或含有負數。
- 呈現隨時間的變化,這時折線圖或堆積柱狀圖比較適合。
使用技巧
- 在「樣式」面板把 donut 的 percent 調到大於 0,中間就會挖空變成甜甜圈圖;padding 可以拉開每一圈之間的距離。
- category 對應多個欄位,就會形成一層一層的同心環。
相關圖表
Pie Chart
A pie chart shows how a whole is divided into parts. Each slice is a category, and its angle is proportional to that category's share of the total, so readers can see at once which part is the biggest.
makechart.io is a free chart maker that runs in the browser: paste a table or upload a CSV / Excel file, bind the columns, adjust the palette, legend and labels in the Style panel, and download the result as SVG or PNG, or share it with a link.
Set up data
Paste, upload or pick sample data to make this chart.
Data format
One row per slice: a column of names and a column of positive numbers. Shares are calculated from the total automatically, so the values do not need to add up to 100.
| Field | Type |
|---|
namerequired | Text, category or order Label of each slice, such as a product or a party. |
valuerequired | Number Size of each slice. Use positive numbers; the share of each slice is value / total. |
categoryoptional | Category (one or more columns) Optional grouping. Each bound column adds a ring, which turns the pie into a multi-level sunburst. |
Example
| name | value |
|---|
| Apple | 12 |
| Orange | 3 |
| Banana | 6 |
| Peach | 9 |
| Guava | 14 |
When to use
- Showing parts of a single whole, such as budget allocation or market share.
- There are only a few categories, ideally no more than five or six slices.
- One or two slices clearly dominate and that is the message you want to get across.
When not to use
- Comparing values that are close to each other; angles are hard to compare precisely, and a bar chart works better.
- Many small categories; thin slices become unreadable. Merge them into an "other" group or use a bar chart.
- Values that do not form a whole, or contain negative numbers.
- Showing change over time; use a line chart or a stacked column chart instead.
Tips
- In the Style panel, raise donut percent above 0 to cut a hole in the middle and create a donut chart; donut padding adds space between rings.
- Bind more columns to category to get concentric rings, one ring per level.
Related charts