Activity 7 Tutorial
A reusable scatter plot example demonstrates D3.js modular chart construction with local ES6 imports and a data-driven API. It loads NFL injury data from a GitHub gist, using `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` to render points. The chart’s width, height, margin, and radius are configurable via function methods. A companion area chart illustrates yearly injury totals with `d3.rollup`, `d3.area`, and gridlines, while a pie chart displays injury-type percentages using `d3.pie` and `d3.arc` with a legend. The examples show multiple visualization patterns within a single tutorial.