liveBook · Manning

Line

As explained in Data Storytelling with Altair and AI

A line is a graphical mark that connects plotted data positions to represent continuity or progression.

A line connects plotted positions to show movement from one step to the next. In a visualized roadmap, it links campaign rectangles so the audience can follow progression. section 9.2.1

Connecting campaign steps

Represent the spaces between three campaign rectangles with a DataFrame containing x, y, x2, and y2 coordinates. In Altair, mark_line(point=True, strokeWidth=2) draws each connector; combining it with the rectangles and labels produces the roadmap.

How Data Storytelling with Altair and AI covers it

How deep it goes
Defines endpoint coordinates and demonstrates Altair rendering, stopping short of general line-chart analysis.
Examples
Uses connectors between Online Campaign, Influencers Engagement, and Social Media Promotion rectangles.
What it assumes
Assumes Python, pandas, DataFrame construction, and basic Altair chart composition.
What you can do after
Builds an Altair roadmap by specifying line endpoints and combining the line with rectangles and labels.
How it connects
Links Altair, pandas DataFrame, rectangles, labels, and chart composition.

Also explained in

Compare how 2 books explain line →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Storytelling with Altair and AI. The section links point to the parts of the book it draws on.