Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

p5 histogram

Public visualization

Viewing a saved revision (read-only)

d89e20993926435e815a41d363686ebf

p5 histogram

0 stars0🌍 Public
AAndrew
Last edited Feb 13, 2024
Created on Feb 13, 2024
Forked from HTML Starter

This visualization displays a histogram of total infection counts for US states from 1970–1980, with bars representing binned data ranges up to 30,000. It uses p5.js to load a CSV dataset from a GitHub gist, render the chart on a 1000x1000 canvas, and provide interactive tooltips that appear on hover to show each bin’s range and frequency. The code draws axis labels, grid lines, and bars using p5’s `rect`, `text`, and `map` functions, with data processed via the `table.getColumn()` API.

AI-generated description

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

See also React Starter.