Skip to main content
100%

Reusable scatter plot

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

This reusable scatter plot visualizes the relationship between charging stations and EV sales across multiple years, with each dot colored by year using the Tableau10 color scheme. The code loads CSV data via `d3.csv` and renders an SVG chart with `d3.scaleLinear` for both axes, `d3.axisBottom` and `d3.axisLeft` for ticks, and `d3.scaleOrdinal` for categorical coloring. The reusable `renderScatterPlot` function accepts configurable accessors and labels, demonstrating a flexible pattern for embedding charts in different contexts.

AI-generated description
MIT Licensed

Similar vizzes