Activity 7 Question 1
✓ Published0🌍 Public
This example displays a pie chart of user age distributions using six predefined age groups from a CSV dataset. Categories are counted from the `user_behavior_dataset.csv` file, and each slice animates with a fade-in transition via `d3.transition`. The visualization leverages `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` with `d3.schemeCategory10` for coloring. A custom legend, built with HTML/CSS flexbox, accompanies the SVG chart to label each age group.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed