Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Box Plot for Assignment 3

Public visualization

Viewing a saved revision (read-only)

51be371f06e14013bdcaed49cafa7984

Box Plot for Assignment 3

0 stars1🌍 Public
Vvishusikka
Last edited Feb 15, 2022
Created on Feb 15, 2022

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