Skip to main content
100%

UN Population Bar Chart - Pathetic Version

✓ Published1🌍 Public
Ppranav-vis
Last edited Sep 5, 2021
Created on Sep 5, 2021

This example shows a rudimentary bar chart of UN world population data for five countries, displaying each country's 2020 population as a horizontal rectangle scaled by value. The visualization uses React for component management and d3.v7's `scaleBand`, `scaleLinear`, and `csv` loader to fetch and map the data from a GitHub-hosted CSV. Bars are rendered as SVG `<rect>` elements with olive fill, positioned using the band scale and sized by the linear scale. The chart intentionally lacks axes, labels, or interactivity, presenting only raw bars on a blank canvas.

AI-generated description

Rendering CSS named colors from MDN.

MIT Licensed

Similar vizzes