Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making A Bar Chart

Public visualization

Fork of Making A Bar Chart

0 stars1🌍 Public
NNigel
Last edited May 14, 2023
Created on May 14, 2023
Forked from Making A Bar Chart

This bar chart displays the populations of the ten most populous countries, using horizontal bars ordered from largest to smallest. The visualization is built with D3 v7, loading data from a CSV file via `d3.csv` and rendering SVG elements. It employs `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft` and `axisBottom` to generate the axes. Each rectangle’s height is determined by the band scale’s bandwidth, and the fill color is set through CSS.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed