Skip to main content
100%

Fork of Fork of Stylized Bar Chart

✓ Published1🌍 Public
HHaileabGH
Last edited Dec 6, 2021
Created on Dec 6, 2021

This example shows the top 10 most populous countries as horizontal bars, ranked by their 2020 population estimates from the United Nations World Population Prospects 2019 dataset. Built with React and rendered as SVG, the chart uses d3.scaleBand for the categorical y-axis, d3.scaleLinear for the continuous x-axis, and custom React components (AxisBottom, AxisLeft, Marks) to draw the grid lines, tick labels, and rectangles. Hovering over a bar reveals the population value via an SVG <title> tooltip.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes