Skip to main content
100%

Refactor bar Chart

✓ Published1🌍 Public
JJohanna Magdalena
Last edited Nov 26, 2021
Created on Nov 26, 2021
Forked from Axes bar Chart

The visualization displays a horizontal bar chart of the top 10 most populous countries, based on United Nations World Population Prospects 2019 data. It shows population values using rectangles scaled with `d3.scaleLinear` and categorical country names positioned with `d3.scaleBand`. The React application uses `useData` to fetch the CSV, then renders SVG elements including custom `AxisBottom` and `AxisLeft` components, with the `Marks` component mapping data to `rect` elements. Rendering leverages ReactDOM and D3 utilities such as `csv`, `max`, and `scaleBand` for a clean, axis-annotated layout.

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