Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
KKai Stewart
Last edited Nov 2, 2021
Created on Nov 2, 2021

This example shows United Nations population projections for 2060 as a horizontal bar chart, with country names on the y-axis and population values on the x-axis. It uses React to render SVG elements, d3.scaleBand and d3.scaleLinear for scaling, and d3.csv to load the data, displaying the first 15 countries. The chart is built from modular components for axes and marks, with text labels for tick values and country names positioned directly in SVG.

AI-generated description

A program that loads data about UN Population projections from the years 2020 - 2060 and displays the data as a bar chart.

MIT Licensed

Similar vizzes