Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
Sstephanie0215
Last edited Sep 27, 2022
Created on Sep 27, 2022
Forked from Stylized Bar Chart

This example visualizes the top 10 most populous countries as a horizontal bar chart, ranking each nation by its population from United Nations World Population Prospects 2019 data. Using React with D3 v5, the chart employs `scaleBand` for the categorical country axis and `scaleLinear` for the population values, rendered as SVG rectangles. The code includes custom `AxisBottom` and `AxisLeft` components that generate ticks and labels, while a `Marks` component draws each bar with a tooltip using the native SVG `<title>` element. The axes and styling are customized through CSS classes and the Poppins font.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes