Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Box Plot

Public visualization

Viewing a saved revision (read-only)

9148db848ddf4f929bb50e04e4a96023

Box Plot

0 stars0🌍 Public
Pprateekvasi
Last edited Feb 18, 2022
Created on Feb 17, 2022
Forked from HTML Starter

This example visualizes the distribution of miles per gallon (mpg) for 2012 vehicles using a box plot. It shows the minimum, first quartile, median, third quartile, and maximum values as horizontal lines and a shaded box, with numerical labels for each statistic. The chart is built with D3.js v4 and rendered as SVG, reading data from a CSV file. The code uses `d3.csv`, `d3.quantile`, and `d3.scaleLinear` to compute summary statistics and map the data to screen coordinates.

AI-generated description