Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Customizing Axes

Public visualization

Fork of Customizing Axes

0 stars1🌍 Public
AArturo Zamora
Last edited Nov 4, 2021
Created on Nov 4, 2021
Forked from Customizing Axes

This bar chart displays the 2018 population estimates for the top 10 most populous countries, with data from the United Nations World Population Prospects. It uses D3 v5 with SVG rendering, leveraging `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis, while customizing axes with `d3.axisBottom` and `d3.axisLeft`. The code applies custom tick formatting via `d3.format` to abbreviate large numbers (e.g., converting billions to "B"). Data is loaded from a local CSV file using `d3.csv`.

AI-generated description

Inspired in Bar Chart example by Curran Kelleher that can be checked here.

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.

Comments

Sign in to join the discussion.

MIT Licensed