Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Lleothimoteo
Last edited Aug 23, 2020
Created on Aug 23, 2020
Forked from Customizing Axes

This bar chart displays the populations of the world’s ten most populous countries, using 2018 estimates from the United Nations World Population Prospects. It highlights how D3 axes can be customized for appearance and readability. The visualization uses d3.csv, d3.scaleLinear, d3.scaleBand, and d3.axisLeft to render countries along the vertical axis and population values as horizontal bars. SVG elements are styled via external CSS, with tick labels, grid lines, and text sizes adjusted through the .tick class.

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