Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Refactored Bar Chart

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed