liveBook · Manning

SVG

Also called Scalable Vector Graphics

SVG (Scalable Vector Graphics) is an XML-based standard and markup language for describing scalable two-dimensional vector graphics.

How 3 Manning books explain it

D3.js in Action, Third Edition

SVG is the Scalable Vector Graphics standard for describing resolution-independent two-dimensional graphics with XML-based elements.

How it is used
Renders vector marks for D3 data visualizations inside the browser DOM.
How deep it goes
Works through container sizing, coordinates, reusable shapes, styling, labels, and groups, then compares SVG’s rendering trade-offs with Canvas.
Examples
Builds a gallery of SVG shapes and positions a line chart inside a translated, margin-aware group.
What you can do after
Build it from scratch with SVG shapes, then apply it via D3 selections to create and position chart elements.

Read how D3.js in Action, Third Edition explains SVG →

HTML5 in Action

SVG 2 is a version of the Scalable Vector Graphics specification that succeeds SVG 1.1.

How it is used
Uses SVG to create responsive, interactive graphics inside HTML applications.
How deep it goes
Works through SVG setup, shapes, animation, imported assets, and a flexible viewBox rather than treating the full specification as a reference.
Examples
Builds a resizable alien game with ships, shields, lasers, imported SVG assets, and interactive elements.
What you can do after
Build from scratch SVG applications that use HTML, CSS, and JavaScript for resizable, interactive graphics.

Read how HTML5 in Action explains SVG →

Tiny CSS Projects

SVG is an XML-based standard for describing two-dimensional vector graphics.

How it is used
Uses SVG rectangles to create a responsive loading graphic that communicates an ongoing task.
How deep it goes
Explains vector coordinates, basic shapes, responsive rectangle placement, and styling access; leaves irregular paths unused.
Examples
Shows eleven spaced rectangles in a responsive loader and CSS fill colors applied to individual bars.
What you can do after
Build it from scratch: position SVG rectangles in a responsive loader and style their fills with CSS.

Read how Tiny CSS Projects explains SVG →

Also covered in

What to know first

Related concepts

Questions about SVG

What is SVG?

SVG (Scalable Vector Graphics) is an XML-based standard and markup language for describing scalable two-dimensional vector graphics.

Which Manning books explain SVG?

D3.js in Action, Third Edition, HTML5 in Action and Tiny CSS Projects.

What should I know before learning SVG?

Manning books that teach SVG usually introduce HTML, CSS, bitmap image and JavaScript first.

What is the difference between SVG and bitmap image?

SVG (Scalable Vector Graphics) is an XML-based standard and markup language for describing scalable two-dimensional vector graphics. A bitmap image is a raster representation of visual content as a grid of individually encoded pixels.

What is SVG also called?

SVG is also called Scalable Vector Graphics.

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.