🌍 Public
Viewing a saved revision (read-only)
540b6d7e3c474712be02d51c7cb3aa91
Lets make a face with D3.js
This example draws a cartoon face using SVG shapes composed with D3 v5. A yellow circle forms the head, while two smaller circles create the eyes and rectangles serve as eyebrows, all positioned relative to a centered group. The mouth is a path generated with the `d3.arc` helper, using specific inner and outer radii and angle values. The code relies on D3’s `select` and `attr` methods to build and style the static SVG elements, with no data binding.
AI-generated descriptionAn example including some commonly used features of SVG.