Skip to main content
100%

Making a Bar Chart

✓ Published4🌍 Public
WWarren-Fitzhenry
Last edited Dec 24, 2019
Created on Dec 23, 2019
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects. The visualization uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisBottom` and `axisLeft` to render ticks, with tick labels formatted in billions (e.g., "1.42B"). The SVG rendering includes custom styling for grid lines, axis labels, and a title. Data is loaded asynchronously from a CSV file using `d3.csv`, with population values converted from strings to numbers.

AI-generated description

Creating a bar chart from csv data.

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes