Making a Bar Chart
This example demonstrates how to build a horizontal bar chart of the top 10 most populous countries using data from a CSV file. It shows customized D3 axes, including formatted tick labels that abbreviate large population numbers using `d3.format`. The chart is rendered as an SVG using D3 v5, and the code illustrates setting up linear and band scales with `d3.scaleLinear` and `d3.scaleBand`. The visualization also includes axis labels and a title, and the repository contains additional files for creating related charts like Pareto and pie charts.
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.