Viewing a saved revision (read-only)
bded8ab097494356a0465846c6c73bab
Making a Bar Chart
This bar chart ranks the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. The population data from a CSV file is scaled on a linear axis, with country names placed along an ordinal point scale. Using D3 v5, the code loads the data with `d3.csv`, renders axes via `d3.axisBottom` and `d3.axisLeft`, and draws steel-blue circles for each bar. Gridlines are extended through the chart area, and the visualization is output as SVG with formatted tick labels.
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.