Fork of Making a Bar Chart
✓ Published1🌍 Public
This bar chart shows the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects 2017. The code uses D3 v5 with `d3.csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render the SVG chart. It customizes the x-axis tick format by converting large numbers to abbreviated units (e.g., 'B' for billions) and removes axis domain lines for a cleaner look. Data is loaded from a local CSV file.
AI-generated descriptionThis 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