Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity7.1_question1

Public visualization

Viewing a saved revision (read-only)

c7d6a4d164244e13a12dad6da11a922b

Activity7.1_question1

0 stars1🌍 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

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.