Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
Eevers-codeshop-ai
Last edited Jun 20, 2021
Created on Jun 20, 2021

This example displays the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset in a horizontal bar chart. The bars are rendered as SVG rectangles using React components, with axes generated via custom `AxisBottom` and `AxisLeft` components that leverage d3.scaleBand and d3.scaleLinear. Data loading is handled through d3.csv in a custom `useData` hook, which parses population values and slices the result to the first ten entries. The chart includes tick marks and labels for both axes.

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