Skip to main content
100%

practice4-Cars Scatter Plot

✓ Published2🌍 Public
DDi Cui
Last edited May 19, 2023
Created on May 19, 2023
Forked from Cars Scatter Plot

This scatter plot visualizes the relationship between horsepower and weight for various car models, using data from the UCI Machine Learning Repository's Auto MPG dataset. The D3.js v5 code loads the dataset, converts string values to numeric types, and maps the data points to SVG circles via the `scaleLinear` and `extent` functions. The axes, generated with `axisBottom` and `axisLeft`, include grid lines and custom labels for the x-axis (Horsepower) and y-axis (Weight), while the circles are styled with a semi-transparent red fill.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.

MIT Licensed

Similar vizzes