Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3

Public visualization

d3

0 stars0🌍 Public
Mmegbridge
Last edited May 4, 2020
Created on May 4, 2020

A minimal SVG rendering of a smiley face, centered within a yellow circle on a black stroke. Built with React and D3 v5, the code uses `select` to target the SVG, `arc` to generate the mouth path, and direct attribute chaining with `.attr` to position the eyes and body. The face is drawn via appended SVG elements—circle nodes for the eyes and face, and a path for the mouth—calculated from the viewport dimensions.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed