Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
PPezanne Khambatta
Last edited Feb 14, 2020
Created on Feb 14, 2020
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. It demonstrates customization of D3 axes by removing default axis lines, styling tick marks, and applying a custom tick format that converts values to abbreviated numbers with 'B' for billions. The visualization uses D3's `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` APIs, with SVG rendering. Population data is read from a CSV file, multiplied by 1000, and mapped to bar widths.

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