Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6_Question3

Public visualization

activity6_Question3

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed