Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

CSCE 5320 HW5

Public visualization

CSCE 5320 HW5

0 stars0🌍 Public
Rrobersontanner1@gmail.com
Last edited Sep 30, 2026
Created on Sep 30, 2026
Forked from HTML Starter

This example visualizes individual player statistics for the San Diego Padres, using home runs (HR) on the x-axis and batting average (BA) on the y-axis. It also encodes position as color and RBI as bubble size, with axes and labels styled for dark background. The code loads CSV data via `d3.csv`, applies numeric conversion, and uses `d3.scaleLinear` for positioning plus `d3.mean` and `d3.median` to summarize statistics in a header. Marks are drawn as colored circles with white strokes inside a single SVG group, and the chart includes a legend area on the right margin.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed