HTML Starter
✓ Published1🌍 Public
This example displays a scatterplot of automobile horsepower and weight from the auto-mpg dataset, with each point representing a vehicle. The visualization uses D3 v5’s `scaleLinear` and `extent` to map data to SVG coordinates, while `axisLeft` and `axisBottom` generate gridlines and tick marks. Circles are appended to the SVG via data joins, styled with opacity, and sized at a fixed radius of 10 pixels. The axis labels and title are added as SVG text elements.
AI-generated descriptionMIT Licensed