Fork of Customizing Axes
This bar chart displays the population of the top 10 most populous countries, based on 2018 United Nations estimates, with population values in thousands. It demonstrates custom axis styling and formatting using D3 v5, including tick labels with abbreviated numbers (e.g., "B" for billions), removed axis lines, and custom title and label text. The visualization uses d3.scaleLinear, d3.scaleBand, axisLeft, and axisBottom, while also enabling zoom functionality via d3.zoom on the SVG container.
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.