Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making a Bar Chart

Public visualization

Fork of Making a Bar Chart

0 stars0🌍 Public
Tttarnalicki3@gatech.edu
Last edited Sep 4, 2024
Created on Sep 4, 2024
Forked from Making a Bar Chart

This example displays a horizontal bar chart of the top 10 most populous countries, based on 2018 United Nations data. It uses d3.scaleLinear and d3.scaleBand to map population values and country names, with d3.axisLeft and d3.axisBottom for the axes. The chart customizes the x-axis tick format to show values in billions and removes axis domain and tick lines, while the title and axis label are added as SVG text elements.

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