Skip to main content
100%

Learn Stylized Bar Chart

✓ Published0🌍 Public
Aavnig
Last edited Sep 12, 2020
Created on Sep 11, 2020

A stylized horizontal bar chart ranks the ten most populous countries using UN World Population Prospects 2019 data. The code builds a React component with SVG rendering, using d3.scaleBand for the categorical y-axis and d3.scaleLinear for the numeric x-axis. Axes are drawn via custom AxisBottom and AxisLeft components, while Marks creates rects with native tooltips. d3.format converts population values into compact notation like “1.4B” for tick labels.

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