In this chapter, we will draw some shapes like we did in the last chapter, but we will use D3's built-in generators to simplify things and make life easier for us. Most of these are included in the d3-shape package.
Shape Primitives of D3
Get D3.js 4.x Data Visualization - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.