Skip to main content
100%

fyfyffyfyfyfyfyf

✓ Published0🌍 Public
Nntech9613
Last edited May 6, 2020
Created on May 6, 2020
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries in 2018, with population values read from a local CSV file and scaled via `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. The chart uses D3 v5 to render SVG rectangles, with custom axes created through `d3.axisLeft` and `d3.axisBottom`. Tick labels are formatted using `d3.format` to abbreviate large numbers, and grid lines are drawn with negative tick sizes. A title and axis label are added as text elements, and the data source is the 2017 United Nations World Population Prospects.

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