Skip to main content
100%

Fork of Fork of Axes with React & D3-achala

✓ Published0🌍 Public
AAchala237
Last edited Apr 18, 2023
Created on Apr 18, 2023

This example displays a horizontal bar chart of population data for five countries, including China, India, and the United States, using React and D3. The chart renders as SVG with axes generated by `scaleBand` and `scaleLinear`, showing tick marks and country labels. It loads data from a CSV file using `d3.csv`, but ultimately displays hardcoded values, including a negative population for Pakistan. The visualization uses React hooks like `useState` and `useEffect` to manage the loading state and render the chart.

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