Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Histogram

Public visualization

Viewing a saved revision (read-only)

f86c666706874937a2443e3fa53355ff

Histogram

0 stars0🌍 Public
DDominic Fernandez
Last edited Feb 11, 2022
Created on Feb 11, 2022
Forked from HTML Starter

This histogram displays the distribution of base pay for San Francisco city employees from 2011 to 2014, using p5.js to load a CSV dataset and render the visualization on an HTML canvas. The code processes the data into bins of $25,000 increments, calculates frequency counts, and scales bar heights proportionally to the count axis. Axes with labeled intervals and value labels are drawn using p5.js drawing functions, with salary values formatted in a compact "k" notation for readability.

AI-generated description