Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE7 - Pie Chart

Public visualization

Viewing a saved revision (read-only)

99f261a8ce264e9b8e0bdd01f0d64323

ICE7 - Pie Chart

0 stars0🌍 Public
Ttrucntx007
Last edited Mar 24, 2022
Created on Mar 24, 2022
Forked from Hello VizHub

This pie chart visualizes the population of ten major world cities in 2022, using data from a JSON file and rendered as an SVG. The D3 v5 code uses `d3.pie` and `d3.arc` to generate the chart, with a custom color scale and a legend that lists each city, its label, and its population value formatted with SI prefixes. The chart is positioned with a transform, and the legend is built using D3’s selection and append methods.

AI-generated description