Skip to main content
100%

A2 Bar Chart

✓ Published2🌍 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.

MIT Licensed

Similar vizzes