IconResources
Visualize intelligence

Box plot

Add a box plot to a card.

Box plots show the distribution, median, and variability of a dataset. Use them to compare spread and detect outliers across groups.

Add box 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 box plot

show distribution per group

compare spread across categories

Code

{
...
"mark": "boxplot",
"encoding": {
"x": {"field": "...", "type": "nominal"},
"y": {"field": "...", "type": "quantitative"}
},
...
}

t0 screenshot - Add card

Configuration options

PropertyDescription
markSet to "boxplot" to enable Vega-Lite's composite box plot rendering.
xCategorical variable to group data by.
yNumerical field to visualize distribution and summary stats.
tooltipShows values for group and value on hover.
view.strokeRemoves the outer chart border.
autosizeEnsures the chart fits inside its container.

On this page