Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

bar chart practice

Public visualization

bar chart practice

0 stars0🌍 Public
GGeorge2916
Last edited Apr 21, 2021
Created on Apr 20, 2021

This bar chart displays population counts for several countries from a CSV file, with each country represented as a horizontal bar. It uses D3 v5’s `scaleLinear` for the x-axis population values and `scaleBand` for the y-axis country categories. The SVG rectangles are appended via data joins, and the chart demonstrates fundamental DOM manipulation with `select`, `csv`, `scaleLinear`, `max`, and `scaleBand`.

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