p5.js.billionaires.barplot
This bar plot visualizes the average wealth of billionaires grouped by inheritance type, using a dataset derived from the CORGIS Billionaires project. The p5.js sketch loads a CSV file via `loadTable` in `preload` and renders static bars with `rect`, axes with `line`, and text labels with `text`. The y-axis tick marks and labels are manually drawn, while each bar’s height scales proportionally to the average worth value. The chart shows that spouse/widow inheritors hold the highest average worth, while fifth-generation inheritors hold the lowest.
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.