Skip to main content
100%

Let's make a face with D3.js

✓ Published1🌍 Public
GGeolffrey S Mena
Last edited Dec 21, 2019
Created on Dec 21, 2019

This example demonstrates how data binding and updates with D3 v5 can make a face out of fruit circles. The code uses `d3.select`, `scaleOrdinal` for color and radius, and joins circle elements to an array of fruit objects. Initially five apples render; after one second, a fruit is removed via `fruits.pop()`, and after two seconds, one apple becomes a lemon, updating the visualization with enter, update, and exit selections.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes