Skip to main content
100%

Fork of Fork of Pie chart Test111

✓ Published0🌍 Public
Ppeterwang6666
Last edited Dec 18, 2021
Created on Dec 18, 2021

This example displays a pie chart of country populations in SVG, using an ordinal color scale with a fixed palette. The chart is generated with d3.pie and d3.arc, and each slice is labeled with the country name positioned via d3.arc centroid coordinates. Data is loaded from a CSV file with d3.csv, and the chart is centered inside a large 4000x4000 SVG viewport. The code uses d3.v6 and relies on data binding to append path and text elements per slice.

AI-generated description
MIT Licensed

Similar vizzes