Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Pie Chart

Public visualization

Pie Chart

0 stars1๐ŸŒ Public
Bbrindapotluri
Last edited Mar 28, 2022
Created on Mar 28, 2022
Forked from Hello VizHub

A pie chart displays the population distribution of the top ten most populous countries, with each slice sized proportionally and color-coded via a categorical scale. The chart renders as an SVG, generated from CSV data loaded from a GitHub gist. Using d3.pie and d3.arc, the visualization constructs the circular segments, while d3.scaleOrdinal with schemeCategory10 assigns slice colors. A legend on the right lists each country with its corresponding color swatch and population value, and hovering over a slice logs the population to the console.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed