Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Stylized Bar chart

Public visualization

Stylized Bar chart

0 stars0🌍 Public
BbeauMarko
Last edited Mar 1, 2021
Created on Mar 1, 2021

This stylized bar chart displays the top 10 countries by population in 2020, using horizontal bars with a teal fill and a clean, minimal aesthetic. The React-based visualization loads CSV data via the `d3.csv` utility, while `scaleLinear` and `scaleBand` map population values to bar widths and country names to vertical positions. Custom SVG axis components render tick marks and labels, with the chart styled using the Poppins font from Google Fonts and React’s `useState` managing the asynchronous data loading process.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed