Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot

Public visualization

Viewing a saved revision (read-only)

9d41e50afd2e4a0894d16d34c2e32866

Cars Scatter Plot

0 stars0🌍 Public
Ppavan0828
Last edited Jun 25, 2022
Created on Jun 25, 2022
Forked from Cars Scatter Plot

This scatter plot visualizes the relationship between horsepower and weight for vintage cars, with each blue semi-transparent circle representing a vehicle. The chart uses D3 v6’s `scaleLinear`, `axisLeft`, and `axisBottom` to construct the axes, which include grid lines and rotated axis labels. Data is loaded from a remote CSV using `d3.csv`, with numeric fields parsed before rendering. The SVG-based visualization applies a margin convention and positions circles via the `xScale` and `yScale` functions.

AI-generated description