Skip to main content
100%

Pathetic bar chart

✓ Published1🌍 Public
TTsaikkari
Last edited Aug 1, 2021
Created on Aug 1, 2021

This example shows a horizontal bar chart displaying the populations of the ten most populous countries, using data from the UN Population 2019 CSV file. The bars are rendered as SVG rectangles via React, with the d3.csv function loading the data and d3.scaleBand and d3.scaleLinear mapping country names to vertical positions and population values to horizontal bar widths, respectively. The chart appears sparse, with only bars and no axes or labels, which highlights the raw data in a minimal layout.

AI-generated description

A program that loads in some data about countries population using D3 bar chart, and uses React to render the data.

MIT Licensed

Similar vizzes