Fork of Cars Scatter Plot
✓ Published0🌍 Public
This scatter plot visualizes the relationship between horsepower and weight for cars from the UCI Machine Learning Repository’s Auto MPG data set. The code uses d3.csv to load the data, d3.scaleLinear for both axes, and d3.axisBottom and d3.axisLeft with custom tick sizing to render the SVG chart. Each car is drawn as a red, semi-transparent circle with a radius of 10 pixels, positioned via d3’s scale functions. Axis labels and a title are added using SVG text elements.
AI-generated descriptionThis scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.
MIT Licensed