Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
Vvegurusaiprathyusha
Last edited Mar 8, 2022
Created on Mar 8, 2022
Forked from Stylized Bar Chart

This example displays the top 10 most populous countries as horizontal bars, using data from the United Nations World Population Prospects 2019. Built with React and D3 v5, it maps country names to the y-axis via `scaleBand` and population values to the x-axis with `scaleLinear`, rendering SVG rectangles through the `Marks` component. The axes are custom-built using `AxisBottom` and `AxisLeft`, with formatted tick labels (e.g., “1.4B”) and a hover tooltip showing the exact value.

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