Skip to main content
100%

Activity7_Task1

✓ Published1🌍 Public
Ssaimanvith22@gmail.com
Last edited Nov 5, 2024
Created on Nov 4, 2024
Forked from Fork of Task 7

This example shows a pie chart of penguin species counts, with each slice labeled by species name and count, and a title reading “Dolphin Species.” The chart is rendered as an SVG using D3 v6, loading data from a remote CSV file. The code uses `d3.csv`, `d3.rollups` to aggregate counts, `d3.pie` and `d3.arc` for the layout and slice geometry, and `d3.scaleOrdinal` for slice colors. Labels are positioned with `arc.centroid`, and the chart is centered within a 500×500 SVG.

AI-generated description
MIT Licensed

Similar vizzes