Skip to content

Dot

A dot mark is the right default for showing a relationship between two numeric columns. Optional r (radius), fill, and stroke channels add a third (or fourth) dimension.

```plot view=customer_metrics
Plot.dot(data, { x: "deals", y: "revenue" })
```

r → radius, fill → segment color. Together they make a four-channel chart.

```plot view=customer_metrics
Plot.dot(data, { x: "deals", y: "revenue", r: "lifetime", fill: "segment", tip: true })
```
```plot view=customer_metrics
{
marks: [
Plot.dot(data, { x: "deals", y: "revenue" }),
Plot.linearRegressionY(data, { x: "deals", y: "revenue", stroke: "tomato" }),
]
}
```
OptionMeaning
x, ynumeric column names
rcolumn name → dot radius
fillcolumn name → dot color
strokecolumn name → outline color
strokeWidthoutline width in px
fillOpacity0–1; lower for dense overlapping
symbol"circle" (default), "square", "triangle", "diamond", "plus", "cross"
tiptrue for hover tooltips
Plot.jitter* transformsfor categorical x or y, jitter in pixels

See Observable Plot — dot for the full reference.