Skip to main content
100%

scatter plot 7

✓ Published0🌍 Public
Aadithiarikatla@gmail.com
Last edited Oct 25, 2025
Created on Oct 25, 2025

This scatter plot visualizes the relationship between horsepower and fuel efficiency (MPG) for a small sample of cars, with each point representing a vehicle and a tooltip revealing its name. Built with D3.v7, the reusable `scatterPlot` function from `scatterPlot.js` uses `scaleLinear` and `axisBottom`/`axisLeft` to map the data to SVG coordinates. The `index.html` file demonstrates the chart with a static dataset, rendering circles via a D3 selection join, though the primary focus is on the configurable chart generator.

AI-generated description
MIT Licensed

Similar vizzes