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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.