Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Ccatalingdiaconu
Last edited May 9, 2022
Created on May 9, 2022
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a set of horizontal bars with no axes, using React hooks to manage state and load data. The visualization fetches a CSV file from a GitHub gist and renders SVG rectangles scaled by age values, which stand in for population. It implements scales with d3.scaleBand for the y-axis positioning and d3.scaleLinear for the x-axis widths. The chart updates asynchronously, showing a loading message before the bars appear once the data arrives via d3.csv.

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