Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Iiascchwen
Last edited Nov 26, 2019
Created on Nov 26, 2019

This example demonstrates how to create an interactive smiley face using D3.js, with eyebrows that move in response to data. It shows fundamental DOM manipulation and data-binding techniques by loading a CSV file and mapping its values to visual attributes. The code uses `d3.select` to target the SVG element, `d3.csv` to load the data, and then implicitly drives the face’s dynamic features. The rendering is done as inline SVG, with the face drawn directly through D3’s selection and attribute methods.

AI-generated description

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

MIT Licensed

Similar vizzes