Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

A2 Bar Chart

Public visualization

Viewing a saved revision (read-only)

f86aae957e4748f2928fa926aba0af66

A2 Bar Chart

0 stars2🌍 Public
Nnathanjmuljadi@gmail.com
Last edited Feb 3, 2025
Created on Feb 2, 2025
Forked from csv loader example

This A2 Bar Chart visualizes counts of police shooting victims by race, using a logarithmic scale on the y-axis to accommodate wide disparities in the data. The chart loads a CSV from a GitHub gist using p5.js’s `loadTable()` function, aggregates race counts in `preload()`, and renders the bars with `rect()` on a 3000x3000 `createCanvas()`. Axis labels, tick marks, and bar values are drawn with custom mapping logic inside the `draw()` loop.

AI-generated description

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

See also React Starter.