Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

SmileySad

Public visualization

SmileySad

0 stars0🌍 Public
AAlankruthSai
Last edited Feb 20, 2022
Created on Feb 20, 2022

This example uses React and D3.js to draw a simple smiley face in SVG. It renders a yellow circle with black stroke for the face, two small circles as eyes, and an arc path for the mouth using D3’s `arc()` generator. The code uses fixed numeric constants for positioning and styles all elements with inline SVG attributes.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed