Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

A2 - Revenue by Class [Bar Chart]

Public visualization

Viewing a saved revision (read-only)

d961f1b1acb9422aa921a63dc5f43072

A2 - Revenue by Class [Bar Chart]

0 stars0🌍 Public
Cctan13@dons.usfca.edu
Last edited Feb 6, 2024
Created on Feb 6, 2024
Forked from HTML Starter

This bar chart displays the total revenue collected from each passenger class on the Titanic, using a simple p5.js sketch. It draws three horizontal bars that show the sum of all fares paid by first, second, and third class passengers, with each bar labeled and accompanied by its total fare value. The visualization highlights the surprising finding that second class generated the least revenue. The data is loaded from a remote CSV file using p5.js’s `loadTable` and rendered on a canvas with basic shapes.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.