ASS2-QUESTION1
✓ Published0🌍 Public
A pie chart displays the survival outcomes of Titanic passengers, with slices representing the count of survivors (1) and non-survivors (0). The chart is labeled "Total Passengers" and rendered as an SVG. The code loads data from Titanic.csv using `d3.csv`, aggregates the passenger records with a manual counting loop, and constructs the pie chart with D3 v7, appending the visualization to the page body.
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