Skip to main content
100%

dv2020-ep7-viz05 - Face

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

A simple smiling face is drawn in SVG using React and D3. The face consists of a yellow circle with a black stroke, two black eyes, and an arc-based mouth. The mouth is created with a d3.arc generator, which uses radius, stroke width, and angle calculations to position and shape it. The code renders the entire composition as a single SVG group translated to the center of a 960 by 500 canvas.

AI-generated description

"Let's Make a Face"

Project 1 of Dataviz 2020
Step three: d3.js

homework: tweak face.

Episode 7

MIT Licensed

Similar vizzes