Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
Iiffath.namira@csedge.org
Last edited Jan 10, 2025
Created on Jan 10, 2025

This example displays the top 10 most populous countries as horizontal bars, with a y-axis labeling country names and an x-axis showing population counts. The chart is rendered as an SVG using React components that leverage d3’s scaleBand and scaleLinear functions to position bars and axes. Data comes from the United Nations World Population Prospects 2019 CSV, and the code imports d3’s csv loader to fetch and parse the data before slicing the first ten rows.

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