Skip to main content
100%

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

✓ Published0🌍 Public
BBrian Isale
Last edited Feb 20, 2022
Created on Feb 20, 2022

This example demonstrates fundamental DOM manipulation with D3.js by rendering a smiley face with green circular head, eyes, and an arc-based mouth. An animated sequence uses chained `transition()` calls to move the rectangular eyebrows upward and back over two-second intervals, creating a winking effect. Built with D3 v5, it uses `select`, `attr`, and the `arc` generator to construct SVG shapes, with all elements positioned mathematically based on the SVG dimensions and eye spacing constants.

AI-generated description

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

MIT Licensed

Similar vizzes