Fork of Customizing Axes
This bar chart visualizes the populations of the top 10 most populous countries, using data from the 2018 United Nations World Population Prospects. The chart displays each country’s population as a horizontal bar, with axis labels and a title. The code builds a custom D3 v5 visualization using `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft`, while customizing tick formatting and removing axis lines. Data is loaded from a CSV file using `d3.csv`, and the SVG rendering is styled with CSS.
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.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.