Skip to main content
100%

Fork of Colm Lang A2 Heatmap

✓ Published0🌍 Public
NNitish Kumar
Last edited Sep 26, 2022
Created on Sep 26, 2022

This heatmap shows the average share of renewable energy production for European countries from 2000 to 2020, with each row representing a country and each column a year, colored by percentage. The code uses p5.js to render the visualization, loading CSV data via `loadTable` from a GitHub Gist. It draws colored squares with `square`, maps values through the custom `getColor` function using `lerpColor`, and includes a gradient legend built from individual lines. Axes, titles, and country labels are placed with text and line drawing functions.

AI-generated description
MIT Licensed

Similar vizzes