🌍 Public
Fork of Colm Lang A2 Bar Chart
This bar chart displays the average share of renewable energy production from 2000 to 2020 for EU member states, with each bar representing a year’s value from a CSV dataset of COVID deaths. The visualization uses p5.js to render the canvas, drawing axes, tick marks, and labeled bars via functions like `drawBars`, `drawAxis`, and `getHeight`. It loads data with `loadTable`, scales bar heights proportionally to the axis, and includes rotated y-axis text. The code relies on p5.js’s drawing API and custom layout logic for the fixed-size canvas.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.