Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Pie chart-ice-7

Public visualization

Viewing a saved revision (read-only)

32b33b09313c4f63a4d7ae251986ac52

Fork of Fork of Pie chart-ice-7

0 stars0🌍 Public
Kkarumanchimanasa
Last edited Mar 12, 2023
Created on Mar 12, 2023

This example visualizes the top 10 countries by monthly farming profits using a pie chart created with D3 v5. The code loads CSV data from a GitHub gist, parses the profit values, and renders each country as a colored arc segment with company name labels. It uses d3.pie to generate the angular data, d3.arc for the path geometry, and d3.scaleOrdinal to assign colors. A legend on the right displays each country’s name and formatted profit amount, while all elements are drawn as SVG.

AI-generated description