Skip to main content
100%

Activity 7 Question 1

✓ Published0🌍 Public
Hharshabandi3060@gmail.com
Last edited Nov 5, 2024
Created on Nov 5, 2024
Forked from Hello VizHub

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 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.
MIT Licensed

Similar vizzes