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

Histogram

A histogram shows how values are distributed by drawing touching columns, one for each range (bin), with the height showing how many items fall into it. It reveals the shape of your data: where most values cluster, whether it is skewed, and whether there are gaps or outliers.

In makechart.io the histogram is a column chart with no gap between columns, so you provide a frequency table: one row per bin with its count. The chart maker does not compute bins from raw values, so group your data first (for example with a pivot in a spreadsheet), then paste it, style it and download it as SVG or PNG.

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

Data format

One row per bin, in order. The first column is the bin label, such as 0-10; the second is the count or frequency in that bin. Raw, unbinned values are not grouped automatically.

FieldType
name
required
Text or order
Label of each bin, such as 20-29 or 160-170 cm. Keep the rows in bin order.
size
required
Number (one or more columns)
Count or frequency in each bin. Extra columns are stacked, for example to split counts by group.
Example
namecount
0-103
10-209
20-3017
30-4012
40-505

When to use

  • Showing the distribution of a numeric measure, such as test scores, ages or response times.
  • Checking whether data is symmetric, skewed or has more than one peak.
  • Presenting a frequency table you already have from a survey or report.

When not to use

  • You only have raw, unbinned values and do not want to group them; the chart will not bin them for you.
  • Comparing separate categories that have no natural order; a regular column chart with gaps is clearer.
  • Comparing the distributions of many groups at once; overlapping stacks become hard to read.

Tips

  • Increase gap in the Style panel if you prefer a small space between bins.
  • Use bins of equal width, otherwise column heights are misleading.

Related charts

直方圖

直方圖用一根根緊貼的柱子呈現數值的分布,每根柱子代表一個區間(組距),高度代表落在該區間的筆數。它能顯示資料的形狀:數值集中在哪裡、是否偏斜,以及有沒有斷層或離群值。

在 makechart.io 中,直方圖是柱子之間沒有間距的柱狀圖,因此需要準備好次數分配表:每個區間一列,附上次數。這個圖表產生器不會自動把原始數值分組,請先在試算表裡分好組(例如用樞紐分析),再貼上、調整樣式,下載 SVG 或 PNG。

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

資料格式

每個區間一列,依區間順序排列。第一欄是區間標籤,例如 0-10;第二欄是該區間的次數或頻率。未分組的原始數值不會被自動分組。

欄位型態
name
必填
文字或順序
每個區間的標籤,例如 20-29 或 160-170 公分,請依區間順序排列。
size
必填
數值(可一或多欄)
各區間的次數或頻率。多個欄位會堆疊,例如依群組拆分次數。
範例
name次數
0-103
10-209
20-3017
30-4012
40-505

適合的使用時機

  • 呈現數值資料的分布,例如考試成績、年齡或回應時間。
  • 檢查資料是對稱、偏斜,還是有多個高峰。
  • 呈現問卷或報告中已經整理好的次數分配表。

不適合的情況

  • 手上只有未分組的原始數值、也不打算先分組:這張圖不會幫你自動分組。
  • 比較彼此沒有順序關係的類別,這時一般有間距的柱狀圖更清楚。
  • 同時比較很多群組的分布,堆疊在一起會難以閱讀。

使用技巧

  • 想讓區間之間留一點空隙,可以在「樣式」面板調大 gap。
  • 各區間的組距請保持一致,否則柱子高度會造成誤導。

相關圖表

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

s
%
code
Loading