Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Let's make a face: part 3

Public visualization

Viewing a saved revision (read-only)

99d78c07a05a44ec82b7979b309a2caa

Fork of Let's make a face: part 3

0 stars1🌍 Public
VVishal Sriramoju
Last edited Jan 12, 2022
Created on Jan 12, 2022

This example displays a smiley face built with React and D3, using SVG circles for the face and eyes and a D3 arc path for the mouth. The face is centered on a 960 by 500 canvas, with gold fill and black accents. React 17 manages the component structure, while d3.arc computes the mouth’s curved geometry from inner and outer radii plus start and end angles. The code explicitly sets dimensions, offsets, and radii as constants, rendering all elements within a single transformed group.

AI-generated description

Making a smiley face with React and D3