Skip to main content
100%

ICE7 - Pie Chart

✓ Published0🌍 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
MIT Licensed

Similar vizzes