Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of ICE 7 Pie Chart

Public visualization

Viewing a saved revision (read-only)

b9ba060b7c3242428462269cbb055d05

Fork of Fork of Fork of ICE 7 Pie Chart

0 stars1🌍 Public
Ppremsaiv
Last edited Mar 29, 2022
Created on Mar 29, 2022

This example visualizes the top 10 car-producing countries in 2019 as a pie chart, with each slice sized proportionally to total production value. The chart renders in SVG using D3 v5’s `pie()`, `arc()`, and `scaleOrdinal` to generate segments and assign colors, while a legend lists country names and production totals formatted with `d3.format`. Data is loaded asynchronously from a CSV file via `d3.csv`, and the visualization is centered in an HTML page styled with CSS.

AI-generated description