Skip to main content
100%

dv2020-ep8-viz06 - Face

✓ Published1🌍 Public
Zzach b.
Last edited Mar 7, 2023
Created on Mar 7, 2023

A yellow circle with a black outline forms a face, with two black circular eyes and a curved smile drawn as a filled arc path. The face is centered in a 960-by-500 SVG canvas and constructed as a React component. The code uses React and ReactDOM to render the SVG, while D3’s `arc` helper generates the mouth path with specified inner and outer radii, start and end angles, and a corner radius. The face, eyes, and stroke widths are proportionally defined relative to a base `faceSize` value.

AI-generated description

"Let's Make a Face"

Project 1 of Dataviz 2020
Step four: react components

Episode 8

MIT Licensed

Similar vizzes