Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
BBjoernujjwb
Last edited Jan 6, 2023
Created on Jan 6, 2023

This example displays the ten most populous countries as horizontal bars, using population data from the United Nations World Population Prospects 2019. The visualization is rendered with React and D3 v5, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis. The code defines reusable React components for the axes and marks, drawing SVG `<rect>` elements for each bar. Data is loaded asynchronously via D3’s `csv` function and sliced to the top ten entries.

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