Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Act 7 Q1

Public visualization

Viewing a saved revision (read-only)

a2dc7401714a40d1a049914242e2c36b

Act 7 Q1

0 stars0🌍 Public
AAnushaHyderaboeni@my.unt.edu
Last edited Apr 11, 2025
Created on Apr 11, 2025
Forked from Hello VizHub

This pie chart visualizes the distribution of passenger classes in the Titanic dataset, showing three categorical slices for Class 1, 2, and 3. The chart uses D3 v7 with an SVG renderer, employing `d3.pie()` and `d3.arc()` to generate the arcs and `d3.rollups()` to aggregate class counts from a CSV. A custom legend displays exact passenger numbers, while axis labels are added despite the circular layout. The color scale maps distinct colors to each class using `d3.scaleOrdinal`.

AI-generated description