Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Let's Make a Face Part I

Public visualization

Viewing a saved revision (read-only)

b769adb793bf4096bb59930584e9c3a9

Fork of Let's Make a Face Part I

0 stars0🌍 Public
TThomas Marlow
Last edited Mar 10, 2021
Created on Mar 10, 2021

This example shows a smiley face constructed from simple SVG shapes: a yellow circle for the head and two black circles for eyes, centered on an 900x500 canvas. Built with React and D3, the code defines constants for dimensions and offsets, then renders the face using a React component that returns SVG elements. The `g` element is translated to the canvas center, while the circle components use D3’s geometry to position the eyes relative to that center point. The rendering is purely declarative, with no interactive behavior or data source beyond the hardcoded coordinates.

AI-generated description

Half way towards a smiley face.