🌍 Public
Viewing a saved revision (read-only)
791e953d689d49caa553a81e05c82f44
Creating a Smile with D3
This example shows a smiling face built from SVG shapes using D3 version 5 with React. It draws a yellow circle with black strokes for the head, two smaller circles for eyes, and a D3 arc path for the mouth. The code demonstrates D3 selections, attribute manipulation, and the `arc` generator, with positions computed from the SVG dimensions and helpers like `eyeRadius` and `eyeSpacing`.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.