Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Titanic Dataset

Public visualization

Viewing a saved revision (read-only)

c34574deefe5434181c7139291f71264

Titanic Dataset

0 stars0🌍 Public
BBashir Gulistani
Last edited Sep 10, 2024
Created on Sep 3, 2024

This example visualizes the Titanic dataset, showing the first passenger record in a raw JSON format. The code loads the CSV data, converts numeric fields like Age, Fare, and Survived to numbers, then displays the first entry using a simple `<pre>` element with a font size of 36 pixels. It relies on the data import from the local `data.csv` file and basic JavaScript stringify to present the data. The visualization is minimal, focusing on the initial data structure rather than charts or interactive elements.

AI-generated description

The sinking of the Titanic remains one of history's most notorious maritime disasters.

On April 15, 1912, during its first voyage, the RMS Titanic, often deemed "unsinkable," tragically sank after striking an iceberg. The ship was not equipped with enough lifeboats for all aboard, leading to the loss of 1,502 lives out of the 2,224 passengers and crew.

Although luck played a role in survival, it appears that certain groups had a higher likelihood of surviving than others.

Link to the original dataset:

https://www.kaggle.com/datasets/yasserh/titanic-dataset/data