Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars1🌍 Public
AAnthony Lee
Last edited Sep 7, 2022
Created on Sep 2, 2022

This bar chart displays population estimates for the ten most populous countries, using horizontal bars ordered by descending population. The visualization is built with D3 v5, loading data from a CSV file and rendering to SVG. It employs `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the categorical y-axis, and `d3.axisLeft` and `d3.axisBottom` for the axes. The chart maps population values to bar widths, with the y-axis labels showing country names.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed