Skip to main content
100%

Lab06, Happy Face :)

✓ Published1🌍 Public
DDiego-Vargas
Last edited Apr 13, 2019
Created on Apr 13, 2019

A smiley face appears as a light blue circle with black outlines, featuring two eyes, rectangular eyebrows, and an arc-shaped mouth. The example demonstrates fundamental DOM manipulation in D3.js v5, using `select` and `append` to build the SVG structure. The eyebrows animate by chaining `transition().duration(2000)` calls, moving them down and back up. Rendering uses an SVG canvas with coordinate transformations via `attr('transform')`, and the mouth is drawn using the `arc` shape generator.

AI-generated description

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

MIT Licensed

Similar vizzes