Skip to main content
100%

P5js Heatmap big test

✓ Published0🌍 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
MIT Licensed

Similar vizzes