Skip to main content
100%

Stylized Donut Chart Population

✓ Published1🌍 Public
PPeter Maida
Last edited Nov 4, 2020
Created on Nov 3, 2020
Forked from Stylized Bar Chart

This stylized donut chart visualizes the top 10 most populous countries as proportions of a circular ring, with each slice labeled by its population value. Built with React and D3 v5, it uses the `arc` generator from d3-shape to compute slice geometries based on population percentages, while data comes from the United Nations World Population Prospects 2019. The chart renders as SVG, applying a distinct color to each slice and positioning text labels with trigonometric calculations derived from the starting angle of each arc.

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