Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Learning data viz

Public visualization

Learning data viz

0 stars0🌍 Public
Lleshla000
Last edited Nov 11, 2021
Created on Oct 17, 2021
Forked from HTML Starter

This example shows a simple smiley face built with React and D3, rendered as SVG shapes. The code uses React to define the component structure and `arc` from `d3` to generate the mouth path, while static circles form the face, eyes, and outline. The face is centered using SVG transforms, with dimensions and offsets defined as constants. The visualization demonstrates how to combine React’s declarative UI with D3’s geometry utilities without any interactive features or external data.

AI-generated description

Right before jumping into react

Comments

Sign in to join the discussion.

MIT Licensed