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
YYanda Qu
Last edited Feb 15, 2021
Created on Feb 15, 2021

A horizontal bar chart displays population figures for nine countries, using data from a CSV file. The chart ranks countries by population along a linear scale, with country names on a band scale for bar positioning. Built with D3 v6, the visualization loads CSV data, converts population values to numbers, and renders SVG rectangles. It uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the axes and bars, with steelblue fills and margins for layout.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed