Skip to main content
100%

Activity 7 Tutorial

✓ Published0🌍 Public
Mmayasuedorman@gmail.com
Last edited Nov 8, 2024
Created on Nov 7, 2024

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.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes