Skip to main content
100%

Untitled

✓ Published0🌍 Public
Jjhansi
Last edited Mar 22, 2022
Created on Mar 14, 2022
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. It demonstrates custom D3 v4 axis styling, including hidden x-axis path lines and percentage-formatted y-axis ticks. The SVG visualization uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and handles window resizing by redrawing the chart with `getBoundingClientRect`. Data is loaded from a TSV file, with hover effects changing bar color to pink.

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