Fork of Making a Bar Chart
✓ Published0🌍 Public
This horizontal bar chart displays the populations of the top 10 most populous countries, sourced from a CSV file. Using d3.csv, d3.scaleLinear, and d3.scaleBand, it renders bars as SVG rectangles. The code demonstrates axis customization with d3.axisLeft and d3.axisBottom, including a custom tick format that converts large numbers to abbreviated labels like "B" for billions.
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