Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

tweaking bar chart

Public visualization

tweaking bar chart

0 stars1🌍 Public
Rrishyossarian
Last edited Jan 14, 2022
Created on Jan 13, 2022
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects 2017. It shows how D3 axes can be customized through tick formatting, tick size, and removing axis domains or tick lines. The code uses `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to render the SVG. Population values are multiplied by 1000, and tick labels are formatted with `.2s` while replacing 'G' with 'B'.

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.

Comments

Sign in to join the discussion.

MIT Licensed