Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Exercise - Smiley

Public visualization

D3 Exercise - Smiley

0 stars1🌍 Public
Ddavidvanr21
Last edited Nov 3, 2020
Created on Nov 3, 2020
Forked from React Starter

This example renders a smiling face built from basic SVG shapes, centered within a 950×400 viewport. A yellow circle forms the head, with two smaller circles for eyes, rectangular eyebrows, and an arc-based mouth using the `d3.arc` generator. The code imports `select` and `arc` from D3 v6, applies geometric transforms to position the face, and demonstrates fundamental SVG composition within a React project. Source data is hardcoded rather than loaded externally, with all styling handled through inline attributes.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed