Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

P5js Heatmap big test

Public visualization

Viewing a saved revision (read-only)

99b77d1f8c454d7b9ec1f2f085dbfe9b

P5js Heatmap big test

0 stars0🌍 Public
Ddriftcafe
Last edited Feb 15, 2022
Created on Feb 8, 2022
Forked from P5js Dotplots

This p5.js example displays a small heatmap comparing horsepower and MPG across six car brands, with green cells indicating higher values and orange indicating lower values. It loads data from a CSV file using the p5.js `loadTable` function, then renders colored squares via the `square()` canvas API. The `heatMapColorforValue()` function maps each numeric value to a hue range using p5.js `map()`, while the table’s Max and Min rows drive the color scaling for both columns.

AI-generated description