Skip to main content
100%

Let's make a face with D3.js!

✓ Published3🌍 Public
LLonwabo11
Last edited May 14, 2019
Created on May 6, 2019

This example creates an animated smiley face using D3.js, with eyebrows that move to demonstrate fundamental DOM manipulation. The visualization builds the face from SVG elements, including eyes, a mouth, and interactive eyebrows. The code imports specific D3 modules such as `select`, `arc`, and `scaleLinear` to construct the face and manage its components. While the primary focus is the face, the code also includes a bar chart with telescope data, mapped using `scaleBand` and `axisBottom`, though this chart is not the main visual output. The face itself is rendered entirely through SVG.

AI-generated description

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

MIT Licensed

Similar vizzes