Skip to main content
100%

Fork of Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
Llizard1111
Last edited Aug 7, 2023
Created on Aug 7, 2023

This example demonstrates fundamental DOM manipulation with D3.js by constructing a smiley face whose eyebrows move, driven by loading population data from a CSV file. The visualization uses d3.select to target an SVG element and d3.csv to fetch and parse data.csv, logging the parsed rows to the console. The page is rendered as SVG within a fixed-size viewport, with D3 v5 handling the asynchronous data loading. The code currently only reads the data and does not yet apply it to animate the face.

AI-generated description

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

MIT Licensed

Similar vizzes