Cars Scatter Plot with D3.js
✓ Published1🌍 Public
This scatter plot visualizes the relationship between horsepower and weight for cars from the auto-mpg dataset, with each circle representing a vehicle. The SVG rendering uses D3.js v5 scaleLinear functions to map data values to screen coordinates, while axisBottom and axisLeft generate the labeled axes with custom tick formatting. Data loads asynchronously via csv(), with a brief transition from the same library’s styling. The chart encodes the two continuous variables directly, using opacity-red circles to reveal density patterns.
AI-generated descriptionMIT Licensed