Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Average Energy Price by Country

Public visualization

Viewing a saved revision (read-only)

4094f0b892ba45efadee9fc63f79957a

Fork of Average Energy Price by Country

0 stars0🌍 Public
TTony Mai
Last edited Mar 14, 2026
Created on Mar 14, 2026

This example visualizes the average energy price by country, computed from a CSV file of daily energy records. The code aggregates energy prices per country, calculates each country’s mean, and renders a bar chart using SVG. It employs D3 v7’s `scaleBand` for the x-axis and `scaleLinear` for the y-axis, along with `d3.csv` to load the data and `d3.axisBottom` and `d3.axisLeft` for the axes.

AI-generated description