Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Refactored Bar Chart

Public visualization

Viewing a saved revision (read-only)

585dd047b82b42ff9827c5ccdc0b50fd

Refactored Bar Chart

0 stars1🌍 Public
Ttorstenaan
Last edited Feb 25, 2021
Created on Feb 25, 2021

This example shows a horizontal bar chart of population figures for the top ten countries from the United Nations World Population Prospects 2019 dataset. The visualization uses React components to render each bar and axis as SVG elements, with scales created via d3.scaleBand and d3.scaleLinear. Data is loaded asynchronously with d3.csv, while the axis tick marks and labels are generated by mapping over the scales' domains.

AI-generated description

Making a simple bar chart using data from United Nations World Population Prospects 2019 Dataset.