Skip to main content
100%

Activity7.1_question1

✓ Published1🌍 Public
Aayeshamanzoor111798@gmail.com
Last edited Nov 5, 2024
Created on Nov 5, 2024

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 description

Pie chart

MIT Licensed

Similar vizzes