Skip to main content
100%

Cars Scatter Plot

✓ Published1🌍 Public
AAnnie Liao
Last edited Jun 9, 2020
Created on Jun 9, 2020

This scatter plot visualizes the relationship between horsepower and weight for a dataset of cars from the UCI Machine Learning Repository. The visualization uses D3 v5, rendering with the `scaleLinear` function to map data values to plot coordinates, while `axisLeft` and `axisBottom` create labeled axes with gridlines. Each car is represented as a lavender circle with 0.8 opacity, plotted against a crimson background. The code loads data from a CSV file using `csv()`, converts numeric fields, and applies nice rounding to the scales for a clean presentation.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository.

MIT Licensed

Similar vizzes