Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Histogram

Public visualization

Viewing a saved revision (read-only)

2f253ae6b920499c829171c6159d9bf0

Histogram

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

This visualization displays the frequency of earthquake impact magnitudes from 2016 as a histogram, with seven bins covering ranges from 0-0.9 up to 6-6.9. The p5.js library loads CSV data from a GitHub gist, parses the "impact magnitude" column, and counts values into bins. The draw loop renders axes, gridlines, and interactive bars using p5.js `rect()` and `text()` functions, showing the count when hovering over each bar. The chart includes labeled axes for frequency and magnitude ranges.

AI-generated description

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

See also React Starter.