Skip to main content
100%

Fork of Making a Bar Chart

✓ Published0🌍 Public
AAshutosh5333
Last edited Mar 3, 2023
Created on Mar 3, 2023
Forked from Making a Bar Chart

This horizontal bar chart displays the top 10 most populous countries based on 2018 United Nations World Population Prospects data. The chart encodes population values as bar widths using D3's `scaleLinear`, with country names positioned along a `scaleBand` y-axis. The visualization is rendered as an SVG, with axes generated via `axisBottom` and `axisLeft`, and tick labels formatted using D3's `format` function. Bars are styled with a steelblue fill, and the chart includes a title and axis label.

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](https://esa.un.org/unpd/wpp/Download/Standard/Population/). It also demonstrates customization of D3 axes. <iframe width="560" height="315" src="https://www.youtube.com/embed/NlBt-7PuaLk?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> -->
MIT Licensed

Similar vizzes