Cars Scatter Plot
This example visualizes the relationship between horsepower and weight for cars, plotting each vehicle as a semi-transparent red circle. The data comes from the auto-mpg dataset loaded via D3’s `csv` function. Using D3 v5 scales and axes, the scatter plot encodes horsepower on the x-axis and weight on the y-axis, with labeled axis titles and a header. The chart uses `scaleLinear`, `extent`, `axisBottom`, and `axisLeft` APIs to map values and render the grid lines, all drawn as SVG elements.