Skip to main content
100%

Dataviz 1 - Face Practice (React + D3)

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

This example builds a stylized face using React and D3 v7, rendered as SVG. It shows a static composition of a yellow circle for the head, two black circles for eyes, and arcs for a mouth and moustache, all positioned with SVG transforms. The code uses `d3.arc()` to define the mouth and moustache paths with specific inner/outer radii and angle ranges. React 17 renders the SVG elements, while D3 provides the arc generator, with all dimensions and offsets hard-coded.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes