Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
SSteven Pearce
Last edited Apr 11, 2022
Created on Apr 11, 2022
Forked from Customizing Axes

This visualization presents a horizontal bar chart of the top 10 most populous countries using 2018 United Nations population estimates (multiplied by 1000 from the CSV data). It demonstrates D3 v5 axis customization, including formatted tick labels (e.g., “1.42B”) via `d3.format` and removed default axis lines. The chart uses `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisBottom` with custom tick sizing. Rectangle marks are rendered in SVG, with styled fonts and fills from the linked 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