Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of bar chart with tick- axes

Public visualization

Viewing a saved revision (read-only)

b893af8e915d41b3b83c5c8e5a56ed00

Fork of bar chart with tick- axes

0 stars0🌍 Public
Ffaizalmunna
Last edited Aug 10, 2021
Created on Aug 10, 2021

This example visualizes the top 10 most populous countries using a horizontal bar chart. The bars are rendered as SVG rectangles with lengths proportional to each country’s 2020 population, sourced from the United Nations World Population Prospects 2019. The chart includes both x- and y-axis tick marks and labels generated via `scaleLinear` and `scaleBand`. React manages the state and rendering, while d3.csv loads and parses the data, and d3’s `max`, `scaleLinear`, and `scaleBand` compute scales for the visualization.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.