🌍 Public
Viewing a saved revision (read-only)
292a89a21d074c63b8ab5a3ac539780c
Fork of Fork of D3 Starter
This example uses D3 v7 to draw a simple yellow smiley face in an SVG canvas. It demonstrates basic shape creation and positioning, using `d3.select` to target the SVG element and `d3.arc` to generate the mouth path with specified inner and outer radii and angles. Circles are appended for the face and eyes with fixed radii and coordinates, while the mouth is placed in a translated group. The code shows how to compose SVG primitives with D3’s selection and path-generation APIs.
AI-generated descriptionA demonstration of how to start using D3 version 6.