Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley with React & D3

Public visualization

Smiley with React & D3

0 stars2🌍 Public
Llaurence beattie
Last edited Sep 8, 2021
Created on Sep 8, 2021
Forked from Fork of Hello HTML

This example shows a classic smiley face rendered as an SVG graphic, centered on a 960×500 canvas. The face consists of a yellow circle with a black stroke, two eyes, and an arc-shaped mouth. The visualization is built using React to manage the SVG elements, while D3’s `arc` function generates the mouth’s path data by specifying inner and outer radii and angular start and end points. All shapes are declared declaratively within the React component and rendered via `ReactDom.render`.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed