Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
Aav1v3k
Last edited Jul 30, 2021
Created on Jul 30, 2021

This example shows the top 10 most populous countries as a horizontal bar chart using React and D3 v5, with SVG rendering. It displays a y-axis of country names and an x-axis of population values, loading data from the United Nations World Population Prospects 2019 via d3.csv. The chart uses d3.scaleBand and d3.scaleLinear to position bars, with custom AxisLeft and AxisBottom components generating ticks. The code highlights a refactored approach to building D3 visualizations within React's component model.

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