ICE6 Scatter Plot Car Efficiency
✓ Published0🌍 Public
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 descriptionMIT Licensed