Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Let's make a face with D3.js!

0 stars0🌍 Public
EEvanEzell
Last edited Jun 19, 2020
Created on Jun 19, 2020

This example demonstrates how to build a smiley face using D3.js v5, with interactive eyebrows that move. It uses basic SVG shapes and DOM manipulation through D3’s selection methods, appending circles and paths to a scalable vector graphic. The chart also incorporates a Sankey diagram layout, using d3.sankey to generate nodes and links, with gradient-colored edges and labels. The code relies on d3.create and d3.selectAll with data joins to dynamically render the visual elements.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed