Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
VVineel Gannu
Last edited Jun 20, 2020
Created on Jun 17, 2020
Forked from HTML Starter

This bar chart displays the top 10 most populous countries, with country names on the y-axis and population counts on the x-axis. The chart uses D3 v5’s `scaleLinear` and `scaleBand` to map data, `axisBottom` and `axisLeft` for axes, and SVG `rect` elements for bars. Population data is loaded from a CSV and scaled by a thousand. Axis ticks are styled with CSS, and the x-axis format converts large numbers to abbreviations like "B" for billions via D3's `format` function.

AI-generated description
MIT Licensed

Similar vizzes