Skip to main content
100%

Pie chart Test

✓ Published3🌍 Public
SSergio Eijben
Last edited Nov 11, 2020
Created on Nov 11, 2020
Forked from Customizing Axes

A pie chart displays the relative populations of ten countries, with each slice labeled by country name. The chart is rendered as an SVG using D3 v6, with slices generated by `d3.pie()` and drawn via `d3.arc()` paths. Colors are assigned from an ordinal scale, and labels are positioned using the `label.centroid()` method. The data comes from a static array embedded in the script rather than the linked `data.csv` file.

AI-generated description
MIT Licensed

Similar vizzes