Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published1🌍 Public
Eeeshani.boyapati@gmail.com
Last edited Mar 24, 2026
Created on Mar 24, 2026

This scatter plot shows the relationship between horsepower and fuel efficiency for ten car models, with points colored by cylinder count (4, 6, or 8) and a legend indicating the mapping. It uses D3 v7’s `scaleLinear` for axes, `scaleOrdinal` for color, and `axisBottom`/`axisLeft` for tick marks. The SVG circles are positioned via the `cx` and `cy` attributes. Data is loaded from a local `cars.csv` file.

AI-generated description
MIT Licensed

Similar vizzes