Skip to main content
100%

Fork of Axes with React & D3

✓ Published0🌍 Public
Aavneet12284
Last edited Jan 3, 2022
Created on Jan 3, 2022

This example visualizes the top 10 most populous countries in 2020 as a horizontal bar chart, using React for component structure and D3 for data loading and scales. It imports `scaleBand`, `scaleLinear`, and `max` from `d3` to compute bar positions and widths, then renders SVG `<rect>` elements and axis tick marks with `<line>` and `<text>`. Data comes from a CSV file based on United Nations World Population Prospects 2019, fetched via `d3.csv`.

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