Skip to main content
100%

Fork of Making a Bar Chart

✓ Published0🌍 Public
HHaHaFi
Last edited Sep 27, 2022
Created on Sep 27, 2022
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 2017. The d3.v5 code loads data from a CSV and uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render the SVG visualization. The y-axis labels show country names while the x-axis formats tick values with a custom `format('.3s')` function that replaces "G" with "B". The chart also includes a title, axis label, and gridlines.

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