Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pseudo-Visualization NFL Passing

Public visualization

Viewing a saved revision (read-only)

0e6f11c1648f42cf9b0e462de17cf95f

Pseudo-Visualization NFL Passing

0 stars0🌍 Public
SSamuel Karkache
Last edited Oct 11, 2024
Created on Sep 25, 2024
Forked from Marks and Channels

This pseudo-visualization maps 100 randomly generated data points across two statistical axes, colored by a categorical legend for Pro Bowl, No Award, and All Pro. Built with D3 v7, it uses `scaleLinear` for position scaling, `scaleOrdinal` for legend colors, and the `@curran/axis-labels` library for labeled axes. The `plot` function draws an inner rectangle, axes, and a legend, while a nested `mark` function renders scatterplot circles. The code demonstrates composable D3 modules and scales, though the data itself is synthetic random values rather than actual NFL passing statistics.

AI-generated description

A demonstration of basic D3 usage to implement the concept of Marks and Channels. Includes usage of:

  • Point Marks by X, Y, Size
  • Line mark varying in length
  • Scaling factors
  • SVG Rectangles
  • selection.each()
  • SVG Path Elements
  • d3.symbol()
  • SVG attributes transform and fill
  • D3 Color Schemes
  • JavaScript Modules

Part of the Constructing Visualizations Playlist.

See also blocks.roadtolarissa.com: Marks and Channels (a vanilla JavaScript version of this).