Skip to main content
100%

dotplot_billionaires.p5.js

✓ Published0🌍 Public
EEunice Tu
Last edited Feb 3, 2024
Created on Feb 3, 2024

A dot plot shows the average net worth in billions for billionaires grouped by inheritance type, ranging from spouse or widow at $4.53 billion to fifth-generation at $2.64 billion. Built with p5.js, the sketch loads a remote CSV via `loadTable` in `preload`, then draws axes, gridlines, labels, and blue circles positioned by scaling each value along the x-axis in `draw`. The data comes from the Corgis billionaires dataset, filtered to two columns and averaged per category.

AI-generated description

(https://gist.github.com/eunicetu16/119ee3d3babaed5f263119abe3664f3f)

The original dataset is from "https://corgis-edu.github.io/corgis/csv/billionaires/" The dataset has been modified and filtered to have only two columns (inherited_type, Average worth in billions) The total worth has been grouped with different inherited types and the average wealth.

MIT Licensed

Similar vizzes