Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart For Milk production

Public visualization

Viewing a saved revision (read-only)

db9d7afc3bfc4b38b25816fae0357373

Pie Chart For Milk production

0 stars0🌍 Public
PPriyaEnuganti
Last edited Jul 3, 2022
Created on Jun 30, 2022

This pie chart visualizes annual milk production across the world, with each slice representing a country and its production value labeled in millions. The chart is built using D3 v5 APIs including `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` for color encoding. Section labels are positioned using the arc centroid, and a legend lists each country with its corresponding value. Data is loaded asynchronously from a raw CSV file hosted on GitHub.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.