Skip to main content
100%

Hello HTML

✓ Published0🌍 Public
Ddatadunphy
Last edited Jul 6, 2021
Created on Jul 6, 2021

This example shows a yellow smiley face drawn with SVG circles and a path, whose eyebrows rise and fall in a looping animation. It demonstrates fundamental DOM manipulation with D3.js by appending SVG elements to a group and using chained `transition().duration()` calls to animate the eyebrow group’s `transform` attribute. The mouth is created using `d3.arc()` with specified inner and outer radii and angle ranges. The code relies on `d3.select` to access the SVG and sets geometric attributes like `cx`, `cy`, and `r` directly.

AI-generated description

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

MIT Licensed

Similar vizzes