Circle

Circles have the following attributes:

  • r: radius
  • cx: x position
  • cy: y position
<circle r="50" cx="200" cy="300"/>

The output for the previous code will be as follows:

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.