Titanic Dataset
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 descriptionThe 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.
Identify Tasks for your Datasets:
- I want to summarize the distribution of Age across all passengers.
- I want to compare the correlation between Fare and Survival (Survived).
- I want to explore unexpected patterns in Pclass (Passenger Class) and Survival.
- I want to identify passengers with a high number of siblings/spouses aboard (SibSp) who survived.
- I want to present how the survival rate varied across different Embarked locations.
Link to the original dataset:
https://www.kaggle.com/datasets/yasserh/titanic-dataset/data