Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
SSwathi Chittani
Last edited Aug 14, 2019
Created on Aug 14, 2019

This example demonstrates how to create D3.js visualizations by rendering a horizontal bar chart of country populations from a CSV data file, using `d3.csv`, `scaleLinear`, and `scaleBand`. The chart applies `axisBottom` and `axisLeft` for axes, removes default domain lines, and formats tick labels with `.3s` and a replace function. Bars are appended as SVG `rect` elements, with margins and an axis label added. The included README references a YouTube video about making a smiley face with animated eyebrows, though the primary code shown focuses solely on the population bar chart, not the face.

AI-generated description

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

MIT Licensed

Similar vizzes