Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of PieChart ICE7

Public visualization

Viewing a saved revision (read-only)

1b298b4ec94d473898d4bfffc02a297e

Fork of PieChart ICE7

0 stars0🌍 Public
SSravaniPosina
Last edited Mar 10, 2023
Created on Mar 10, 2023
Forked from PieChart ICE7

This pie chart shows the top 10 car-producing countries in the world for 2019, with each slice colored and labeled in a legend that includes the country name and its production value in thousands. Built with D3 v5, the visualization loads CSV data from a GitHub gist using `d3.csv`, calculates totals per country, and renders the chart as SVG paths using `d3.pie` and `d3.arc`. A `d3.scaleOrdinal` assigns colors to the slices, while the legend is manually positioned with appended circles and text elements.

AI-generated description