Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Ice 7 Pie Chart-2

Public visualization

Ice 7 Pie Chart-2

0 stars0🌍 Public
AAmar09nath
Last edited Mar 28, 2022
Created on Mar 28, 2022
Forked from Pie Chart

This visualization presents a pie chart of countries by income, sourced from a CSV file fetched via D3’s `csv` method. Each slice’s color is mapped using `scaleOrdinal`, while `d3.arc` and `d3.pie` generate the segment paths and text labels positioned via the arc centroid. A legend on the right lists each country with its income value, formatted using D3’s `format` function. The chart renders in SVG with a title, using D3 v5.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed