Skip to main content
100%

D3 working

✓ Published0🌍 Public
MMiguel Rios R
Last edited May 25, 2021
Created on May 24, 2021
Forked from HTML Starter

This example shows a simple smiley face rendered as scalable vector graphics (SVG) through React. The face is composed of three circles for the head and eyes, plus a D3 arc path for the mouth, all positioned using a central translation. The code uses React 17 to manage the component structure, while the d3.arc API from D3 v6 generates the mouth’s curved path. All shapes are drawn with hardcoded coordinates and SVG attributes, with no external data source.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes