Activity7.1_question1
✓ Published1🌍 Public
This example shows an animated pie chart that cycles through four numeric attributes of Palmer Penguins data—culmen length, culmen depth, flipper length, and body mass—updating the visualization every two seconds. The chart uses d3.pie and d3.arc to generate slices, d3.scaleOrdinal with schemeCategory10 for species-based coloring, and a legend built with SVG rects and text elements. An attribute label at the top updates with each cycle, while the underlying data comes from a CSV file loaded via d3.csv.
AI-generated descriptionPie chart
MIT Licensed