Using SVG to create images using code

In this chapter, we learn how to render shapes in the browser, using SVG. We'll cover shapes such as these:

  • Circles:

  • Lines:

  • Rectangles:

  • Ellipses:

  • Polygons:

  • Polylines:
  • Cubic Bezier Curves:

Get D3.js Quick Start Guide 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.