Skip to main content
100%

Fork of SmileFace

✓ Published0🌍 Public
NNenad Skrbic
Last edited Oct 30, 2022
Created on Oct 30, 2022
Forked from SmileFace

This example uses React and D3 v7 to draw a smiley face in an SVG. The face consists of a yellow circle for the head with a black stroke, two black circles for eyes, and an arc for the mouth. D3’s `arc` generator creates the mouth path, while fixed pixel offsets and radius values position all elements relative to the center. The SVG is rendered by a React component using `ReactDOM.render`, with the figure centered in a 960×500 viewport.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes