Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pathetic Bar Chart

Public visualization

Pathetic Bar Chart

0 stars1🌍 Public
SSonja Ek
Last edited Jun 1, 2021
Created on May 31, 2021

This example displays a horizontal bar chart of the top ten countries by population for 2020, sourced from a UN population CSV. The chart is bare, containing only colored rectangles with no axes, labels, or annotations. Built with React and D3, the code uses D3’s `csv` loader, `scaleBand`, `scaleLinear`, and `max` functions to map data to SVG rectangles, with React managing the data state and rendering.

AI-generated description

A program that loads in some data and creates a bar chart with no info text.

Comments

Sign in to join the discussion.

MIT Licensed