Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of let's make a face with D3.js

Public visualization

Viewing a saved revision (read-only)

1b0f11bb90934ac481553f6a7b614da5

Fork of let's make a face with D3.js

0 stars0🌍 Public
KK V VINITHA
Last edited Feb 18, 2022
Created on Feb 18, 2022

A stylized face is constructed from basic SVG shapes, including a yellow circle for the head, two white ellipses for the eyes, black circles for pupils, and a gray arc for the mouth. The drawing is rendered on a 1000×500 SVG canvas using D3 v5 selection and attribute methods. Coordinates are computed dynamically from the canvas width and height, while the mouth is generated using the D3 arc generator with explicit inner and outer radii and angle values. The code is written in React and imports the `select` function from D3.

AI-generated description

A bare minimum HTML page.

See also React Starter.