Skip to main content
100%

Cars Scatter Plot with D3.js

✓ Published1🌍 Public
Ssiddharth171
Last edited Jul 23, 2020
Created on Jul 23, 2020

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 description
MIT Licensed

Similar vizzes