Skip to main content
100%

Fork of ScatterPlot-Spotify

✓ Published0🌍 Public
Cchandanamahesh0215@gmail.com
Last edited Oct 27, 2025
Created on Oct 27, 2025

This scatter plot shows the relationship between engine horsepower and fuel efficiency (miles per gallon) for a subset of 1970s cars, with each point representing a car model. The horizontal axis displays horsepower, the vertical axis displays MPG, and the points are colored on a blue sequential scale based on horsepower. Built with a reusable `scatterPlot` module, the chart uses D3 v7 APIs such as `d3.scaleLinear`, `d3.extent`, `d3.axisBottom`, and `d3.axisLeft`. Hovering over a point triggers a tooltip showing the car’s name, horsepower, and MPG, implemented via mouse event listeners.

AI-generated description
MIT Licensed

Similar vizzes