IconResources
Visualize intelligence

Scatter plot

Add a scatter plot to a card.

Scatter plots are useful for showing relationships or distributions between two quantitative variables. Use them to spot clusters, trends, or outliers in numerical data.

Add scatter plot

Set card to type "Vega Chart".

t0 screenshot - Add pie chart

t0 Prompt

Select data in the context dropdown of the chat window.

make a scatter plot

show x vs y

create dot plot

Code

{
...
"mark": "point",
"encoding": ... ,
...
}

t0 screenshot - Add card

Configuration options

PropertyDescription
xSets horizontal position using a quantitative field.
ySets vertical position using a quantitative field.
markUse "point" to show data as dots.
tooltipDisplays values on hover.
size(Optional) Encodes point size using a quantitative field.
color(Optional) Distinguishes groups by category or value.
shape(Optional) Varies point shape by category.
view.strokeRemoves outer chart stroke.
autosizeEnsures the chart fits inside its container.

On this page