Fork of Fork of D3 Starter
✓ Published0🌍 Public
This example shows a reusable scatter plot that maps student Age against Marks, with axes and labels generated from a CSV file. The code defines a `drawScatter` function that uses `d3.scaleLinear` to set domains and ranges, then renders circles with `d3.selectAll` and appends axis groups via `d3.axisBottom` and `d3.axisLeft`. Data is loaded asynchronously from a GitHub-hosted CSV using `d3.csv`, and the SVG output is cleared and redrawn on each call.
AI-generated descriptionMIT Licensed