Fork of Hello VizHub
This visualization presents the survival distribution of Titanic passengers as a pie chart, using D3.js to render each passenger category as a colored slice. It shows the proportion of survivors versus casualties with interactive hover tooltips that display the count and percentage for each group, alongside a legend summarizing total counts. The chart uses d3.pie and d3.arc to generate the SVG slices, with d3.scaleOrdinal and schemeCategory10 for coloring. Data comes from a CSV dataset fetched from a GitHub gist, filtered by the "Survived" field.
AI-generated descriptionTitanic Survival Pie Chart
This visualization presents the survival rates from the Titanic disaster as a pie chart. The data is divided into two categories:
- Survived: Passengers who survived the disaster
- Died: Passengers who perished in the disaster
Features
- Interactive pie chart showing the distribution of survivors and casualties
- Hover effects to display detailed information with percentages
- Legend providing an overview of the categories
- Clean, responsive design
Data Source
The visualization uses a sample of the Titanic dataset, which contains information about passengers aboard the RMS Titanic, including their survival status, age, sex, and passenger class.
How to Use
- Open the visualization in a web browser
- Hover over sections of the pie chart to see detailed information
- Refer to the legend for the category counts