Skip to main content
100%

Bar chart

✓ Published1🌍 Public
Aafcchilders
Last edited Jan 13, 2022
Created on Jan 13, 2022

This bar chart displays the top 10 countries by population for 2020, using horizontal rectangles whose widths are proportional to each country’s population. The visualization is built with React and D3 v7, leveraging `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Data is loaded asynchronously from a CSV file via `d3.csv`, filtered to the first ten rows, and rendered as SVG `<rect>` elements. The chart updates reactively once the data arrives, showing a loading message initially.

AI-generated description

A program that loads in some data about CSS colors

MIT Licensed

Similar vizzes