Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
SSarah Elkeurti
Last edited Apr 9, 2022
Created on Apr 7, 2022

This bar chart visualizes the top 10 countries by 2020 population using data from the UN Population 2019 dataset, loaded via D3’s `csv` utility. Built with React and D3 v5, it encodes population with a linear x-scale (`scaleLinear`) and country names with a band scale (`scaleBand`) for the y-axis. The SVG rendering is composed of custom components for axes (`AxisBottom`, `AxisLeft`) and bars (`Marks`), with React state managing the asynchronous data loading.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes