Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 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.

MIT Licensed

Similar vizzes