Reusable Scatter Plot (Car Engine)
✓ Published0🌍 Public
This scatter plot visualizes the relationship between engine size and fuel efficiency (MPG) using a dataset of car engines. The visualization shows individual data points as blue circles, with clear axis labels displaying the measured variables. Built with D3.js (v7), the implementation uses `d3.csv` to load data from a GitHub-hosted CSV file, `d3.scaleLinear` for axis scaling, and `d3.axisLeft` and `d3.axisBottom` to render the chart axes. The SVG-based rendering is encapsulated in a reusable `ScatterPlot` function that accepts configurable dimensions, margins, and data value accessors, allowing for flexible reuse across different datasets.
AI-generated descriptionMIT Licensed