Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of SmileFace

Public visualization

Fork of SmileFace

0 stars0🌍 Public
NNenad Skrbic
Last edited Oct 30, 2022
Created on Oct 30, 2022
Forked from SmileFace

This example uses React and D3 v7 to draw a smiley face in an SVG. The face consists of a yellow circle for the head with a black stroke, two black circles for eyes, and an arc for the mouth. D3’s `arc` generator creates the mouth path, while fixed pixel offsets and radius values position all elements relative to the center. The SVG is rendered by a React component using `ReactDOM.render`, with the figure centered in a 960×500 viewport.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed