Fork of Customizing Axes
This bar chart displays the top 10 most populous countries based on 2018 estimates from the United Nations World Population Prospects. It visualizes population data loaded from a CSV file, with each country’s population scaled linearly along the x-axis and country names positioned along a band scale on the y-axis. The example customizes D3 axes by removing tick lines, formatting tick labels from billions to the letter “B”, and adding custom axis and title text using `axisBottom` and `axisLeft` from d3 v5.
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.