Line
A line is a graphical element or mark defined by endpoints that represents a straight segment or connects plotted data positions.
D3.js in Action, Third Edition
An SVG line is a line element defined by two endpoint coordinates and rendered as a straight segment.
- How it is used
- Places a straight segment in an SVG shapes gallery as a foundation for D3 visualizations.
- How deep it goes
- Works through endpoint coordinates, stroke color, stroke width, and clipping at the SVG boundary.
- Examples
- Draws a segment from (50, 45) to (140, 225) and thickens its black stroke.
- What you can do after
- Build it from scratch inside an SVG container with chosen endpoints and a visible stroke.
Data Storytelling with Altair and AI
A line is a graphical mark that connects plotted data positions to represent continuity or progression.
- How it is used
- Connects sequential campaign options to turn a set of rectangles into a visualized roadmap.
- 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 you can do after
- Builds an Altair roadmap by specifying line endpoints and combining the line with rectangles and labels.
Read how Data Storytelling with Altair and AI explains line →
Related concepts
- whiskerincludes · A boxplot whisker is a line extending from a box toward the most extreme included observation on the corresponding side of a distribution.
- geometric primitivekind of · A geometric primitive is a basic geometric shape or element that serves as a building block for representing or constructing more complex geometry.
- box plotpart of · A box plot is a statistical graphic that summarizes a numerical distribution using quartiles, a median, and whiskers or markers indicating spread and potential outliers.
Questions about line
What is line?
A line is a graphical element or mark defined by endpoints that represents a straight segment or connects plotted data positions.
Which Manning books explain line?
D3.js in Action, Third Edition and Data Storytelling with Altair and AI.
What kinds of line are there?
Kinds of line include whisker and SVG line element.
What is line a kind of?
Line is a kind of geometric primitive. A geometric primitive is a basic geometric shape or element that serves as a building block for representing or constructing more complex geometry.
What is line part of?
Line is part of box plot. A box plot is a statistical graphic that summarizes a numerical distribution using quartiles, a median, and whiskers or markers indicating spread and potential outliers.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

