Skip to main content
100%

Fork of Making a Bar Chart

✓ Published0🌍 Public
MManue21
Last edited Jan 21, 2021
Created on Jan 21, 2021
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects 2017. The visualization uses D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render an SVG chart with custom tick formatting that abbreviates large numbers. The horizontal bars are colored steelblue, with a title and axis label added via appended SVG text elements. Data is loaded from a CSV file and processed in JavaScript before being mapped to bar widths and y-axis positions.

AI-generated description

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