Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars0🌍 Public
DDomen Hribernik
Last edited Dec 24, 2020
Created on Dec 24, 2020

This horizontal bar chart displays the populations of the top ten most populous countries, using a D3.js v5 SVG rendering. Data from a CSV file is loaded and scaled linearly for the x-axis and as a banded scale for the y-axis. The code demonstrates fundamental DOM manipulation by appending rectangles and text elements, with axes and labels formatted using D3’s `scaleLinear`, `scaleBand`, `axisBottom`, `axisLeft`, and `format` utilities.

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