Skip to main content
100%

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

✓ Published0🌍 Public
ZzKhaled305
Last edited May 15, 2022
Created on May 15, 2022

A yellow smiley face rendered with SVG in D3.js demonstrates fundamental DOM manipulation. The face is centered within a 960x500 viewport, with its eyes, eyebrows, and a mouth built from circles, rectangles, and an arc path. The code uses the `d3.select`, `append`, `attr`, and `transition` methods to construct the shapes and animate the eyebrows, which move upward and return over four seconds. This fork of a tutorial example shows basic data-visualization primitives without external data, focusing on creating and transforming SVG elements dynamically.

AI-generated description

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

MIT Licensed

Similar vizzes