reusable
✓ Published0🌍 Public
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 descriptionMIT Licensed