Skip to main content
100%

ICE - 7 Pie - Manasa

✓ Published0🌍 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.

MIT Licensed

Similar vizzes