Skip to main content
100%

ice7 part1

✓ Published0🌍 Public
Jjammigumpula.priyanka193@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024
Forked from HTML Starter

This interactive scatter plot visualizes the relationship between horsepower and MPG for a sample of cars from the Cars dataset, encoding each vehicle’s weight through circle radius and origin through color (USA, Japan, Europe). Using D3.js v7, the code builds SVG axes and circles, mapping quantitative scales for horsepower, MPG, and weight, while color categories are hardcoded. Hovering a circle reveals a tooltip with the car’s specific measurements, implemented via D3’s event handling and the `d3.select` API.

AI-generated description

Enhanced Scatter Plot

This HTML file creates an interactive scatter plot using D3.js library to visualize data points from the Cars dataset. It displays the relationship between horsepower and MPG (miles per gallon) of cars, with additional information such as origin and weight. Each data point is represented by a circle, with size corresponding to weight, and color indicating the origin of the car (USA, Japan, or Europe).

MIT Licensed

Similar vizzes