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

Scatter Plot

A scatter plot places each record as a dot, using one number for the horizontal position and another for the vertical position. It is the classic way to see whether two variables are related, spot clusters, and find outliers.

The makechart.io scatter chart maker also lets you color dots by category, size them by a third value and show a regression line. Paste or upload your data, bind the columns, and download 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 data point, with at least two numeric columns. Category, size and name columns are optional and add more information to each dot.

FieldType
X coordinate
required
Number
Horizontal position of each dot.
Y coordinate
required
Number
Vertical position of each dot.
category
optional
Category
Groups dots by color and adds a legend.
size
optional
Number
Dot size, turning the plot into a bubble-style scatter.
name
optional
Text or category
Name of each point, shown in the tooltip.
label
optional
Text
Text shown as the dot label. The name is used if omitted.
Order
optional
Order
Sequence of the points, used when connecting them with a trend line.
Example
nameheight (cm)weight (kg)group
Amy15849A
Ben17570B
Cora16355A
Dan18178B
Eve16961A

When to use

  • Checking whether two numeric variables are correlated, such as advertising spend and sales.
  • Spotting clusters and outliers in hundreds of data points.
  • Comparing groups by coloring dots by category.
  • Showing a third variable by dot size.

When not to use

  • Only one numeric variable; use a bar chart or histogram.
  • Categories on both axes; a heat map style table or grouped chart reads better.
  • Telling a story about change over time for a single series; a line chart is clearer.

Tips

  • A regression line is shown by default; turn regression off in the Style panel if you do not need it, or turn on trend to connect points by Order.
  • Set the scale type of xaxis or yaxis to log scale when values span several orders of magnitude.

Related charts

散布圖

散布圖(又稱散佈圖、XY 圖)把每一筆資料畫成一個點,用一個數值決定橫向位置、另一個數值決定縱向位置。這是觀察兩個變數有沒有關聯、找出群聚與離群值最經典的方法。

makechart.io 的散布圖還能依分類替點上色、用第三個數值決定點的大小,並畫出迴歸線。貼上或上傳資料、對應欄位,就能線上做圖並下載成 SVG 或 PNG。

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

資料格式

每一列是一個資料點,至少需要兩個數值欄位;分類、大小、名稱等欄位為選填,可以讓每個點帶有更多資訊。

欄位型態
X coordinate
必填
數值
點的橫向位置。
Y coordinate
必填
數值
點的縱向位置。
category
選填
分類
依分類替點上色,並顯示圖例。
size
選填
數值
點的大小,讓散布圖帶有泡泡圖的效果。
name
選填
文字或分類
每個點的名稱,會顯示在提示框中。
label
選填
文字
點旁邊要顯示的標籤文字,沒有對應時使用 name。
Order
選填
順序
點的先後順序,用趨勢線把點連起來時使用。
範例
name身高 (cm)體重 (kg)組別
小美15849A
阿明17570B
小芳16355A
大偉18178B
小婷16961A

適合的使用時機

  • 檢查兩個數值變數是否相關,例如廣告預算與銷售額。
  • 在數百個資料點中找出群聚與離群值。
  • 依分類上色,比較不同群組的分布。
  • 用點的大小呈現第三個變數。

不適合的情況

  • 只有一個數值變數,這時用長條圖或直方圖。
  • 兩個軸都是分類資料,用表格式的熱圖或分組圖表比較好讀。
  • 只想呈現單一數列隨時間的變化,折線圖比較清楚。

使用技巧

  • 預設會顯示迴歸線,不需要時可在「樣式」面板關閉 regression;打開 trend 則會依 Order 把點連成趨勢線。
  • 數值橫跨好幾個數量級時,可以把 xaxis 或 yaxis 的 scale type 改成 Log Scale。

相關圖表

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

s
%
code
Loading