Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Ppa1raju
Last edited Sep 21, 2019
Created on Sep 21, 2019

This example builds a simple smiley face in an SVG canvas using D3.js version 5, focusing on fundamental DOM manipulation. It appends a red circle with a stroke to the SVG element via `select` and `append`, then applies attributes for radius and position. The code also styles the SVG with a red border through CSS, while a linked video demonstrates animated eyebrows. The visualization highlights basic D3 selection, element creation, and attribute setting without data inputs.

AI-generated description

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

MIT Licensed

Similar vizzes