🌍 Public
Viewing a saved revision (read-only)
51be371f06e14013bdcaed49cafa7984
Box Plot for Assignment 3
This example shows a box plot that summarizes the distribution of median city MPG values for all car makes and models from 2009 to 2012. It displays the minimum, first quartile, median, third quartile, and maximum values along a vertical axis. The visualization is built with p5.js, loading a CSV dataset from a GitHub gist. The code programmatically calculates the quartiles from the sorted data and uses basic shape-drawing functions like `rect()` and `line()` to construct the plot.
AI-generated description