Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

4th visualisation

Public visualization

Viewing a saved revision (read-only)

790f5fe749c4400fb9be226a66e9bb2a

4th visualisation

0 stars1🌍 Public
Vvenkatabhaskaratetali@my.unt.edu
Last edited Apr 21, 2024
Created on Apr 18, 2024
Forked from 3rd visualisation

This visualization shows the composition of electricity generation by country, using stacked bar charts to break down each country’s total energy mix into six sources: coal, biofuel, hydro, nuclear, solar, and wind. The chart uses d3.csv to load data from a GitHub-hosted dataset, then applies d3.stack, d3.scaleBand, and d3.scaleLinear to compute and position the stacked segments. Color-coded bars via d3.scaleOrdinal distinguish the energy types, while interactive tooltips are provided through SVG title elements and axes are generated with d3.axisBottom.

AI-generated description

A responsive scatter plot.