Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley face

Public visualization

Viewing a saved revision (read-only)

df59cf9b1cf74632bc586c4d4e2bbb5b

Smiley face

0 stars1🌍 Public
MMalempatiSaranya
Last edited Jun 18, 2022
Created on Jun 18, 2022

This example shows a smiley face built from an SVG in a React application, using D3’s arc generator to create the mouth, eyes, and ears. The face features a red circle with a green stroke, black eye circles, yellow ellipses, and purple ear arcs, all positioned relative to the center of the canvas. The code leverages `d3.arc` to define the curved shapes and React’s `ReactDOM.render` to insert the graphic into the page, demonstrating coordination between D3 geometries and React’s declarative SVG output.

AI-generated description

A bare minimum HTML page.

Smiley face