Skip to main content
100%

Refactor Bar Chart

✓ Published1🌍 Public
PPedro Henrique Vanali
Last edited Jun 25, 2023
Created on Jun 21, 2023
Forked from Pathetic Bar Chart

This bar chart visualizes the top 10 most populous countries using data from the United Nations World Population Prospects 2019, with a shameful lack of axes emphasizing the raw bar lengths. The React application uses D3 v5 utilities like `csv`, `scaleBand`, and `scaleLinear` to load and scale the data, while custom components `AxisBottom`, `AxisLeft`, and `Marks` render the SVG output. The x-axis uses a linear scale for population values, the y-axis employs a band scale for country categories, and the chart is drawn with SVG rectangles whose widths encode population.

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