IconResources
Visualize intelligence

Line chart

Add a line chart to a card.

Line charts are ideal for showing how values change over time. Use them to highlight trends across dates, steps, or any continuous scale.

Add line chart

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 line chart

plot trend over time

convert to line chart

Code

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

t0 screenshot - Add card

Configuration options

PropertyDescription
xHorizontal axis. Use temporal for date or time fields.
yVertical axis. Use quantitative for numeric values.
markSet to "line" to draw a path connecting points.
tooltipShows values on hover.
interpolate(Optional) Controls curve smoothing (e.g. "monotone", "step").
view.strokeRemoves outer chart stroke.
autosizeEnsures the chart fits inside its container.

On this page