Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Ice6_question2

Public visualization

Viewing a saved revision (read-only)

ad462cce6b784ae184a37624dd4c84aa

Ice6_question2

0 stars0🌍 Public
Ssrujana reddy
Last edited Oct 20, 2025
Created on Oct 20, 2025
Forked from D3 Starter

This scatter plot visualizes the relationship between passenger age and fare price in the Titanic dataset, with each circle representing a passenger and colored by survival status (green for survived, red for did not survive). The visualization uses D3.js v7 with SVG rendering, loading data asynchronously via `d3.csv` from the public Titanic dataset on GitHub. D3 scales (`d3.scaleLinear` for axes and `d3.scaleOrdinal` for colors) map data values to pixel positions, while `d3.axisBottom` and `d3.axisLeft` generate the axes. Hover effects increase point opacity, and a legend distinguishes survival outcomes.

AI-generated description