Skip to main content
100%

d3 ;)

✓ Published0🌍 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.

MIT Licensed

Similar vizzes