From the course: Creating Projects for Interactive Data Visualization with Processing

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Chapter 13 challenge: Interacting with data

Chapter 13 challenge: Interacting with data - Processing Tutorial

From the course: Creating Projects for Interactive Data Visualization with Processing

Start my 1-month free trial

Chapter 13 challenge: Interacting with data

Challenge four is about interacting with data. For this challenge, you're being asked to chart data from professional baseball teams in order to explore the relationship between the teams average runs per game by year. And their winning average for that year. That's because this is one of the biggest predictors of winning average. The data set has over 2,500 rows. It includes every major league team that played at least 100 games in a season between the years of 1883, that's less than 20 years after the end of the Civil War, up to 2010. Your job is to do the following. First, create a scatter plot that shows the relationship between average runs per game on the X axis, and the win percentage on the Y axis. Second, when a user hovers over a data point on the plot, provide the name of the team, its average runs per game, and its win percentages. Third, use keyboard commands to zoom in and out of the scatter plot. Fourth, allow the user to drag the scatter plot with a mouse. And then…

Contents