Cars Scatter Plot
✓ Published1🌍 Public
This scatter plot from the auto-mpg dataset visualizes the relationship between horsepower and weight for various car models, with each car represented as a red, semi-transparent circle. D3.js v5’s scaleLinear and extent functions map data values to SVG coordinates, while axisBottom and axisLeft create labeled axes with gridlines via tickSize. The code loads CSV data from VizHub, converts numeric fields, and appends circles using enter selections, with styled SVG text for axis labels and the chart title.
AI-generated descriptionMIT Licensed