Skip to main content
100%

activity6_Question3

✓ Published0🌍 Public
Aa9.hemraj@gmail.com
Last edited Oct 31, 2025
Created on Oct 31, 2025

This scatter plot visualizes car performance by plotting horsepower on the x-axis against mileage (MPG) on the y-axis, with each point colored by fuel type (Petrol, Diesel, Electric). The visualization uses D3.js v7 with SVG rendering, employing `d3.scaleLinear` for both axes and `d3.scaleOrdinal` for color mapping. Data is loaded asynchronously via `d3.csv` from a GitHub gist, with a legend positioned separately using SVG circles and text elements.

AI-generated description
MIT Licensed

Similar vizzes