Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Box Plot

Public visualization

Viewing a saved revision (read-only)

89266c9f34894449b04d234fd5880104

Box Plot

0 stars0🌍 Public
RRiya Mathur
Last edited Feb 11, 2024
Created on Feb 11, 2024
Forked from Histogram

This example visualizes the distribution of salary data as a box plot, highlighting the minimum, first quartile, median, third quartile, and maximum values using a green box with a red median line. The data is loaded from a CSV file using p5.js’s `loadTable`, then processed and sorted in `setup` before a custom `drawBoxPlot` function renders the chart on a dimmed background. The code computes quantiles via a `quantile` helper function and uses p5.js drawing commands like `rect` and `line` to construct the plot directly on the canvas.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.