Skip to main content
100%

Electric Vehicle Data Reusable D3 Scatter Plot

✓ Published3🌍 Public
Mmeangreen0067@gmail.com
Last edited Mar 29, 2026
Created on Mar 29, 2026

This reusable D3.js scatter plot visualizes electric vehicle data, mapping model year on the x-axis against electric range on the y-axis, with color distinguishing Battery Electric Vehicles (BEVs) from Plug-in Hybrid Electric Vehicles (PHEVs). Built with Vue and rendered as SVG, it uses `d3.csv` to load the dataset, `scaleOrdinal` for color encoding, and `scaleLinear` with `axisBottom` and `axisLeft` for axes. The implementation follows a reusable chart pattern via a `scatterPlot` function, with interactive hover effects that increase stroke width and opacity.

AI-generated description
MIT Licensed

Similar vizzes