Skip to main content
100%

Fork of bar chart with tick- axes

✓ Published0🌍 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.

MIT Licensed

Similar vizzes