Skip to main content
100%

Smiley face with D3.js!

✓ Published0🌍 Public
MMiguel Vicente O. Santiago
Last edited Jan 28, 2021
Created on Jan 28, 2021

A smiley face rendered in blue SVG responds to interaction as its eyebrows move. The example demonstrates fundamental DOM manipulation with D3.js v5, using `select` to target the SVG element and apply styling directly. It imports specific D3 methods rather than the full object, showcasing modular usage. The face is built entirely through SVG elements, with no external data source, relying on D3’s selection and attribute methods to update the eyebrows dynamically.

AI-generated description

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

MIT Licensed

Similar vizzes