Skip to main content
100%

Fork of Smiley Face Part 1_Assignment

✓ Published0🌍 Public
EErika Nagai
Last edited Jan 17, 2023
Created on Jan 17, 2023
Forked from Smiley Face Part 1

This example uses D3’s `arc` generator to draw a smiling face composed of SVG shapes. The visualization shows a pink circle for the face, two black circles for eyes, and a semicircular mouth created with an arc path that spans from 90 to 270 degrees. The chart is built with React 18 and D3 v7, rendering to an SVG canvas with fixed dimensions. The drawing is centered mathematically, and the face’s radius is defined relative to the canvas height and stroke width.

AI-generated description

Halfway through the smily face:) HTML page.

MIT Licensed

Similar vizzes