Skip to main content
100%

reusable

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

Similar vizzes