Fork of Let's make a Bar Chart
✓ Published1🌍 Public
This example uses D3.js v5 to build an animated smiley face entirely from SVG shapes. A yellow circle forms the face, with two smaller circles as eyes and an arc path for the mouth. The code demonstrates fundamental DOM manipulation by appending elements to a group and using `transition` to animate rectangular eyebrows up and down over two seconds. It showcases basic shape construction, attribute setting, and chained transitions through D3’s selection API, with no external data source, relying solely on hardcoded dimensions for layout.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed