Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published1🌍 Public
SScott Kanning
Last edited Apr 25, 2024
Created on Apr 24, 2024
Forked from Pathetic Bar Chart

This example shows a horizontal bar chart of the top 10 most populous countries in 2020, with population values displayed along the x-axis using a D3 linear scale and country names on the y-axis. The visualization is rendered as an SVG using React, with axes and bars constructed from D3 scale objects and mapped to SVG elements. Data is loaded from a CSV file of the United Nations World Population Prospects via D3’s `csv` loader. The `AxisBottom`, `AxisLeft`, and `Marks` components format ticks and tooltips using D3’s `format` function.

AI-generated description

A program that shows the top 10 most populous countries.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes