Skip to main content
100%

D3 Scatter Plot Baseball With Brushing

✓ Published0🌍 Public
PPatrick-Houlihan
Last edited Oct 27, 2021
Created on Oct 27, 2021

This scatter plot visualizes the relationship between plate appearances and hit-by-pitches for 2017 MLB hitters, filtering out players with fewer than 100 at-bats. The SVG rendering uses d3.csv to load the dataset, d3.scaleLinear for both axes, and d3.axisLeft and d3.axisBottom for tick marks. Each player appears as a circle positioned by d3.extent-derived domains, with brushing implied by the title but not implemented in the visible code.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the 2017 Standard Hitting Dataset.

This scatterplot shows the HBP stats and Pitches against of players. Identifying players that get hit more in fewer at bats is fun because I hypothesize they will see some benefit to OBP since a HBP is on base. It also shows controversial players or players teams just do not like by looking at leaders in HBP.

MIT Licensed

Similar vizzes