Fork of Customizing Axes
This bar chart displays the top 10 most populous countries using 2018 UN population estimates, with each bar's length proportional to population. The example demonstrates D3 v5 axis customization, including tick formatting (converting values to billions), tick line removal, and custom axis labels. It uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render the SVG chart. The data is loaded from a CSV file containing country names and population figures, with the chart embedded in a simple HTML page styled via 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.