🌍 Public
A2 - Passengers per Class (Dot Plot)
This dot plot visualizes the number of Titanic passengers per class using p5.js, with CSV data loaded via the `loadTable` function from a GitHub gist. The sketch counts passenger records by class and renders three circles with labels, revealing an inverse relationship between class affluence and passenger count. A light blue background, axis lines, and annotations highlight the trend. The visualization displays passenger counts (Class 1: 216, Class 2: 184, Class 3: 491) on a canvas sized to the window, with axes labeled from 0 to 300 in increments of 100.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed
![A2 - Revenue by Class [Bar Chart]](/viz/38cd5ff7569d4f60a33ef4b36b7d4844/social-image.png?v=d961f1b1acb9422aa921a63dc5f43072)

![[A2] Revenue by Class (Bar Chart)](/viz/9e6169c75d3841eab31b5e2de0d54af5/social-image.png?v=ee9ed86398bf487090a6cf7d6af6553b)





Comments
Sign in to join the discussion.