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

Bar Chart

A bar chart compares values across categories with horizontal bars: the longer the bar, the larger the value. Because category labels sit on the left and read naturally from top to bottom, it is one of the easiest ways to create a graph that anyone understands at a glance.

With makechart.io you can build this data visualization right in the browser: paste a table or upload a CSV / Excel file, bind the columns, adjust colors and axes in the Style panel, then download the result as SVG or PNG, or share a link.

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

Data format

One row per category. The first column holds the category names; each additional numeric column becomes a series. With more than one series, bars are stacked by default.

FieldType
name
required
Text, category or order
Label of each bar, such as a product, country or year. Shown on the vertical axis.
size
required
Number (one or more columns)
Bar length. Bind several columns to compare multiple series in one bar.
Example
nameAppleBananaPeach
20224.23.12.6
20235.02.83.3
20246.13.42.9

When to use

  • Comparing a handful to a few dozen categories, such as sales by region or votes by candidate.
  • Category names are long: horizontal bars leave room for labels that would be cramped under a column chart.
  • Ranking items: turn on sorting to show the largest or smallest values first.
  • Showing how a total splits into parts, by binding several value columns as stacked series.

When not to use

  • Showing a trend over a continuous time range; a line chart reads better.
  • Hundreds of categories; the bars become too thin to read. Filter or group the data first.
  • Showing share of a whole with only one series; a pie or donut chart may be clearer when there are few slices.

Tips

  • In the Style panel, set type to column to turn it into a vertical column chart, and multiple to group to place series side by side instead of stacking them.
  • Turn on percent to show each bar as a 100% stacked bar, so you compare proportions instead of totals.

Related charts

長條圖

長條圖用橫向的長條比較各個類別的數值,條越長代表數值越大。類別名稱放在左側,由上往下閱讀,是最容易讓人一眼看懂的圖表之一。

在 makechart.io 可以直接在瀏覽器裡線上做圖:貼上表格或上傳 CSV / Excel 檔,對應好欄位,在「樣式」面板調整顏色與座標軸,就能下載 SVG、PNG,或產生連結分享出去,輕鬆完成資料視覺化。

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

資料格式

每一列是一個類別。第一欄放類別名稱,其餘每一個數值欄位都是一組數列;有多組數列時,預設會堆疊在同一條長條上。

欄位型態
name
必填
文字、分類或順序
每條長條的標籤,例如產品、國家或年份,顯示在縱軸上。
size
必填
數值(可一或多欄)
長條的長度。對應多個欄位,就能在同一條長條裡比較多組數列。
範例
name蘋果香蕉水蜜桃
20224.23.12.6
20235.02.83.3
20246.13.42.9

適合的使用時機

  • 比較幾個到幾十個類別的數值,例如各地區的業績、各候選人的得票數。
  • 類別名稱比較長的時候:橫向長條的左側有足夠空間放標籤,不會像柱狀圖那樣擠在底下。
  • 呈現排名:打開排序,讓最大或最小的項目排在最前面。
  • 呈現總量的組成:對應多個數值欄位,以堆疊的方式顯示各部分。

不適合的情況

  • 呈現連續時間的趨勢變化,這時折線圖比較好讀。
  • 類別多達數百個:長條會細到看不清楚,建議先篩選或合併資料。
  • 只有一組數列、想表達占整體的比例,而且項目不多時,圓餅圖或甜甜圈圖可能更直觀。

使用技巧

  • 在「樣式」面板把 type 改成 column,就會變成直式的柱狀圖;把 multiple 改成 group,多組數列會並排而不是堆疊。
  • 打開 percent,每條長條都會變成 100% 堆積長條,比較的是比例而不是總量。

相關圖表

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

s
%
code
Loading