Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3 ;)

Public visualization

Viewing a saved revision (read-only)

5d96683cf6db4d469a47a7e86549611e

d3 ;)

0 stars0🌍 Public
MMikePowar
Last edited Jan 10, 2020
Created on Jan 10, 2020

This example uses D3 version 5 and React to render a simple smiley face in SVG. It draws a yellow circle for the head, two black circles for eyes, and a path for the mouth, all positioned with hard-coded coordinates based on the SVG’s width and height. The code imports `select` and `arc` from D3, appends SVG elements via chained `.attr()` calls, and uses inline styling. No external data or interactive behavior is present.

AI-generated description

A bare minimum HTML page.

See also React Starter.