Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of React Starter

Public visualization

Fork of React Starter

0 stars1🌍 Public
JJoachim Klug
Last edited Apr 9, 2021
Created on Apr 9, 2021
Forked from React Starter

This example renders a simple yellow smiley face as an SVG graphic inside a React application. The face, eyes, and mouth are drawn using D3’s `arc()` generator and basic SVG shapes, with all styling handled in CSS. The component uses React’s `ReactDOM.render()` to mount the visualization, while D3 v6 supplies the arc path for the mouth. The graphic fills the entire viewport, with the face radius calculated from the window dimensions.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed