Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
HHojjat Karami
Last edited Mar 24, 2023
Created on Mar 24, 2023
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, with data from the 2018 United Nations World Population Prospects estimate. The visualization demonstrates customized D3 axes, including a formatted x-axis that converts values to billions and a y-axis with removed domain and tick lines. Built with d3.v5, the chart uses `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` APIs, rendering via SVG. Bar widths are mapped to population values, and the chart includes a title and axis label with custom styling from the included CSS.

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