Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pathetic Bar Chart

Public visualization

Viewing a saved revision (read-only)

c1a34fabc8d3472390401fcf4e4d8fd8

Fork of Pathetic Bar Chart

0 stars0🌍 Public
DdapperAuteur
Last edited Mar 14, 2021
Created on Mar 14, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as horizontal bars using React with hooks and D3 scales. It fetches UN World Population Prospects 2019 data via `d3.csv`, maps the 2020 population figures, and renders SVG rectangles whose widths are scaled by `scaleLinear` and vertical positions by `scaleBand`. The visualization intentionally omits axes, making it a minimal “pathetic” bar chart. The code also sets up Apollo Client and GraphQL integration, though the chart itself does not exercise those libraries.

AI-generated description

fork is trying to use GraphQL with VizHub

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.