Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart

Public visualization

Viewing a saved revision (read-only)

dbcff8a835624b8a9d72c2740a6360ba

Pie Chart

0 stars1🌍 Public
CChi Aghaizu
Last edited Mar 26, 2023
Created on Mar 25, 2023

This pie chart visualizes total inward remittance flows to the US in 2019, using a D3.js v6 SVG rendering. The chart displays seven slices, each labeled with its value in millions and accompanied by a legend showing the country name and corresponding amount. The code fetches data from a CSV via `d3.csv`, processes it with `d3.pie`, and applies a custom ordinal color scale. Text labels are positioned using `d3.arc` centroids and rotated for readability, while the legend is built with appended SVG elements.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.