Skip to main content
100%

Vamos fazer um rosto com D3.js

✓ Published1🌍 Public
AAlan Santos
Last edited Jun 1, 2022
Created on May 31, 2022

The visualization displays a grid of smiley faces, each generated with randomized facial features using React and D3.js v5. It shows how SVG components can be composed from reusable functional parts like circles for eyes and the background, and D3’s `arc` function for the mouth. The app renders multiple faces simultaneously, varying eye offset, radius, and mouth dimensions via `Math.random()`. Rendering occurs in an SVG container, with each face built from modular React components such as `FaceContainer`, `BackGroundCircle`, and `Eyes`.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes