Skip to main content
100%

SDA HW2-1

✓ Published1🌍 Public
Vvits.18731a0539@gmail.com
Last edited Mar 26, 2025
Created on Mar 26, 2025
Forked from assigment-2

This pie chart visualizes the survival rates of Titanic passengers by splitting the dataset into two categories: non-survivors (0) and survivors (1). The chart uses a purple and green color scale to distinguish between the two groups, with labels showing the count for each category. Built with D3 v6, the visualization loads CSV data from a GitHub gist and uses the `d3.pie()` and `d3.arc()` functions to generate the SVG slices. A legend to the right of the chart displays the color-keyed categories, while text annotations label the axes as survival count and passenger total.

AI-generated description
MIT Licensed

Similar vizzes