Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
Kkiyimba5
Last edited Feb 28, 2021
Created on Feb 28, 2021

This fork of “Let’s make a face with D3.js!” draws a smiley face as static SVG shapes: a yellow circle, two black eyes, and an arc-based mouth. D3 selections and the `arc()` generator position the facial features relative to the SVG’s width and height. The code imports `select` and `arc` from d3.v5, sets attributes like `cx`, `cy`, and `r` manually, and leaves eyebrow paths incomplete, showing only the face’s base construction without animation or interaction.

AI-generated description

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

MIT Licensed

Similar vizzes