Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE6 Scatter Plot Car Efficiency

Public visualization

Viewing a saved revision (read-only)

151773d5e0234c80831552344549a862

ICE6 Scatter Plot Car Efficiency

0 stars0🌍 Public
AAddiga Himesh Chander
Last edited Mar 9, 2026
Created on Mar 9, 2026

This scatter plot shows the relationship between car horsepower and fuel efficiency (MPG) across 112 vehicles. The visualization uses a blue circle for each car, with the x-axis representing horsepower and the y-axis showing miles per gallon, revealing a clear negative correlation between the two variables. Built with React and D3 v7, the code loads CSV data via `d3.csv`, applies linear scales with `d3.scaleLinear`, and renders circles into an SVG using the `join` pattern. Axis and text labels are added through `d3.axisBottom` and `d3.axisLeft`, with margins defining the plotting area.

AI-generated description