Cars Scatter Plot with d3
✓ Published2🌍 Public
This example visualizes the relationship between vehicle weight and horsepower using data from the auto-mpg dataset. The scatter plot displays individual cars as semi-transparent red circles, with weight on the x-axis and horsepower on the y-axis. The visualization is built using D3 v6, employing `scaleLinear` for both axes, `extent` to set domains, and `axisLeft` and `axisBottom` with gridlines. It loads CSV data via `csv()` and renders to SVG, including custom axis labels and a chart title.
AI-generated descriptionMIT Licensed