Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Colm Lang A2 Heatmap

Public visualization

Viewing a saved revision (read-only)

cea3c970860f458b9c9cb0f3c96d85c3

Fork of Colm Lang A2 Heatmap

1 star0🌍 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