Skip to main content
100%

Pie Chart

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

MIT Licensed

Similar vizzes