Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Colm Lang A4 | Bar Chart in D3

Public visualization

Colm Lang A4 | Bar Chart in D3

0 stars3🌍 Public
CColm Lang
Last edited Feb 21, 2022
Created on Feb 21, 2022

This bar chart displays the average share of renewable energy production across EU member states per year, with exact percentages revealed on hover. It loads a CSV file from a GitHub gist using `d3.csv`, then renders SVG rectangles scaled by `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis. The chart includes axis labels, a title, and CSS-driven hover interactions that change bar color and display the numeric value.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed