Skip to main content
100%

Reusable scatter plot

✓ Published0🌍 Public
AAparna Desi Reddy
Last edited Mar 28, 2026
Created on Mar 25, 2026
Forked from D3 Starter

This reusable scatter plot shows the relationship between EV sales and charging station counts, with each point colored by year via a Tableau10 ordinal scale. The visualization is built with D3 v7, using `d3.csv` to load EV adoption data from a remote GitHub gist, then rendering SVG circles through a configurable `renderScatterPlot` function. The axes are generated with `d3.axisBottom` and `d3.axisLeft`, while the scales are defined using `d3.scaleLinear` with automatic domain extension and nicening. The reusable design accepts data accessor functions and label strings, making the chart adaptable to different datasets and variables.

AI-generated description
MIT Licensed

Similar vizzes