Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

reusable

Public visualization

Viewing a saved revision (read-only)

98c7c826fe314244b9e4b150f8746dcc

reusable

0 stars0🌍 Public
Sshreelasya.bezawada@gmail.com
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from HTML Starter

This reusable scatter plot shows the relationship between electricity consumption, average temperature, population size, and renewable energy percentage across a dataset of countries. The visualization uses SVG circles whose x and y positions map to electricity consumption and temperature, while circle radius encodes population and color encodes renewable energy share through a green quantized scale. The chart is built with D3 v7, featuring axes with grid lines, axis labels, and hover tooltips. The code implements a factory function that encapsulates margins, scales, and rendering logic, making the chart configuration-driven and reusable for different datasets.

AI-generated description