This chapter introduces SVG Paths, and explains how you can use them in D3 to create any shapes you want. You will also learn about D3 Path Generators and how to use them to make the creation of paths easier.
Forget Rectangles, Go Freehand
Unless you are Piet Mondrian1, you cannot limit yourself to drawing only rectangles, and eventually circles. SVG provides a path element that allows you to draw anything, from line charts to the world map. D3, in turn, makes use of the path element to draw interesting and ...