Skip to main content
100%

Dataviz 1 - Face (React components + ES6)

✓ Published1🌍 Public
RRyAlpha
Last edited Nov 19, 2021
Created on Nov 18, 2021

This example renders a simple cartoon face using React components and ES6 syntax, combining SVG circles and a d3 arc path. It shows a yellow circular head with black stroke, two offset eyes, and a curved mouth spanning the lower half. The code imports `arc` from `d3` to generate the mouth path, while React manages the component structure and rendering into the DOM via `ReactDOM.render`. D3 v7 and React 17 are loaded from CDN, with all face dimensions defined as constants.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes