Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Colm Lang A2 Bar Chart

Public visualization

Fork of Colm Lang A2 Bar Chart

0 stars0🌍 Public
MMar-99
Last edited Mar 7, 2022
Created on Mar 7, 2022

This example visualizes the average share of renewable energy production from 2000 to 2020 across EU member states as a bar chart. It uses p5.js to render the visualization, drawing axes, ticks, and bars on a 960×500 canvas. The data is loaded from a CSV file via `loadTable()` in the `preload()` function, with bar heights scaled proportionally to the axis dimensions. The code includes custom functions for axis labels, tick marks, and bar drawing, with a green fill for each bar.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed