Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Colm Lang A4 | Bar Chart in D3

Public visualization

Viewing a saved revision (read-only)

7c1115968c8843e9a47561c4eec7d1ef

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