Skip to main content
100%

Stylized Bar Chart

✓ Published1🌍 Public
AAlex Gomes
Last edited Mar 1, 2022
Created on Mar 1, 2022

This stylized bar chart displays the top 10 countries by population in 2020, using a neon cyan fill and a custom Smooch Sans font for a distinctive visual style. The chart renders as an SVG via React components, with D3’s scaleBand and scaleLinear mapping country names to vertical bands and population counts to horizontal bar lengths. Axis ticks and tooltips are formatted using d3.format, converting large numbers into abbreviated “B” for billions. Data is loaded asynchronously from a CSV URL using d3.csv and managed through React’s useState and useEffect hooks.

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