Making a Bar Chart
✓ Published0🌍 Public
This example shows a bar chart of the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. The visualization uses D3 v5 to load CSV data, scale linearly for the x-axis population values, and scale band for the y-axis country categories. The SVG rendering includes axis labels via axisBottom and axisLeft, with rectangular bars filled in steelblue. Data preprocessing multiplies the population values by 1000 to reflect actual counts.
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.
MIT Licensed