IconResources
Visualize intelligence

Histogram

Add a histogram to a card.

Histograms are used to show the distribution of a single numerical variable. Use them to understand the frequency of values across continuous intervals (bins).

Add histogram

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 histogram

show distribution

plot frequency of values

Code

{
...
"mark": "bar",
"encoding": {
"x": {"bin": true, ...},
"y": {"aggregate": "count", ...}
},
...
}

t0 screenshot - Add card

Configuration options

PropertyDescription
x.binEnables binning for the x-axis field (divides data into intervals).
y.aggregateUses "count" to show frequency in each bin.
markUse "bar" to render the bins.
tooltipShows bin range and frequency on hover.
axis.titleCustomizes axis labels.
autosizeEnsures the chart fits inside its container.
view.strokeRemoves the outer chart border.

On this page