Cars Scatter Plot
✓ Published1🌍 Public
This scatter plot visualizes the relationship between horsepower and weight for a dataset of cars, with each point representing a vehicle. The chart uses d3.csv to load the data, d3.scaleLinear for both axes, and d3.axisBottom and d3.axisLeft to render tick marks and grid lines. Red semi-transparent circles are drawn as SVG elements, with axis labels and a title styled via CSS. The code removes default axis domains and applies nice() to round scale domains for cleaner tick values.
AI-generated descriptionThis is plot comparing cars' statistics
MIT Licensed