Skip to main content
100%

Let's make a face with D3

✓ Published0🌍 Public
Aaudreyfr
Last edited Nov 24, 2019
Created on Nov 24, 2019
Forked from Untitled

A smiley face rendered in SVG responds to mouse movement by shifting its eyebrows. The example demonstrates fundamental D3.js DOM manipulation using `d3.select` and `d3.append` to build the face from circles and paths, with the `transform` attribute controlling its position. Eyebrow movement is driven by event handlers that update the `cy` attribute of SVG elements. All drawing uses SVG primitives within a single `<svg>` element, with no external data source.

AI-generated description

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

MIT Licensed

Similar vizzes