Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE - 7 Pie - Manasa

Public visualization

Viewing a saved revision (read-only)

ef56aaab5c464f89a2fc0ef82c7f5d8e

ICE - 7 Pie - Manasa

0 stars0🌍 Public
MManasa891-git
Last edited Mar 30, 2023
Created on Mar 30, 2023

A pie chart visualizes the population distribution across continents, sourced from a CSV file fetched via `d3.csv` and represented as proportional slices. The D3 code uses `d3.pie` to compute arc segments, `d3.arc` with inner and outer radii to generate the shapes, and `d3.scaleOrdinal` with a custom color array for section fills. Each slice displays its population value as text, positioned using the arc’s centroid. A legend, built with SVG rectangles and text, maps continent names to their corresponding colors and formatted population counts, rendering everything within an SVG canvas.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.