Skip to main content
100%

D3

✓ Published0🌍 Public
Hhebelmx
Last edited Jun 8, 2020
Created on Jun 7, 2020
Forked from Hello HTML

A yellow circle with two smaller black eyes and an arc-shaped mouth forms a simple smiley face. The example uses D3 v5 selections to append SVG circles and a path to a fixed 900×500 viewport. The mouth is drawn with the `d3.arc()` generator, specifying inner and outer radii and an angle range covering half a circle. The code directly sets positional attributes, such as `cx`, `cy`, and `r`, to place each element.

AI-generated description
MIT Licensed

Similar vizzes