Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
SShalin Shah
Last edited Feb 25, 2021
Created on Feb 25, 2021
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, based on 2018 United Nations World Population Prospects estimates. It shows a horizontal bar layout with country names on the y-axis and population values on the x-axis. The example demonstrates D3 v5 axis customization using `d3.axisBottom` and `d3.axisLeft`, with a formatted tick label that converts units from billions to millions. The code utilizes `d3.scaleLinear`, `d3.scaleBand`, and `d3.csv` to load the data, rendering the chart as SVG elements with custom styling for axes, labels, and the title.

AI-generated description

This 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.

MIT Licensed

Similar vizzes