Skip to main content
100%

Let's Make a Face Part 3

✓ Published0🌍 Public
Kkeitheade
Last edited Nov 1, 2021
Created on Nov 1, 2021

This example displays a stylized face using React and D3’s `arc` generator. The SVG shows a yellow semicircular mouth drawn with a filled arc, and a single black-outlined circle for an eye, positioned using fixed offsets. Built with React 17 and D3 v7, the code renders the mouth path via `arc().innerRadius(0).outerRadius(250)` and places the eye with plain SVG circle properties, relying on literal coordinate values rather than data-driven scales. The face remains incomplete, showing only the mouth and one eye.

AI-generated description

Half way towards a smiley face. part 2... had to reload the page.

MIT Licensed

Similar vizzes