Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Hhireign
Last edited Feb 13, 2020
Created on Feb 13, 2020

This example combines a bar chart with a playful animated face. The bar chart plots the data from `datosd3.csv`, using `scaleBand` for the categorical time variables and `scaleLinear` for the numeric totals. D3.js v5 selects the SVG element and appends axes and rectangles. The chart's axes are created with `axisBottom` and `axisLeft`. The face is an SVG overlay, and the entire visualization is rendered client-side using standard DOM manipulation, with the SVG output styled via CSS.

AI-generated description

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

MIT Licensed

Similar vizzes