Making a Bar Chart
This bar chart displays the populations of the top 10 most populous countries based on 2018 United Nations estimates, with countries listed on the y-axis and horizontal bars sized by population. The visualization uses D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to construct the axes, with tick labels formatted using `format('.3s')`. Population values from the CSV file are multiplied by 1,000 before scaling. The SVG rendering includes custom axis styling, removed domain lines, and labeled axes for population and the chart title.
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.