Fork of Let's make a face with D3.js!
✓ Published0🌍 Public
This example demonstrates fundamental DOM manipulation with D3.js by constructing a yellow rectangular face with eyes, eyebrows, and a mouth. The eyebrows animate upward and downward using chained `transition()` calls with a 2-second duration. The code imports `select` and `rect` from D3 v5, appends SVG shapes via method chaining, and uses an `arc()` path from D3 to render the mouth. A static SVG canvas of 960×500 pixels serves as the rendering surface, with all elements positioned relative to the center of the viewport.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed