Skip to main content
100%

Colm Lang A4 | Bar Chart in D3

✓ Published3🌍 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
MIT Licensed

Similar vizzes