Skip to main content
100%

Plot of NASCAR Drivers by Payout

✓ Published0🌍 Public
RRobert Johnson
Last edited Oct 25, 2021
Created on Oct 25, 2021

This scatterplot shows NASCAR winners by payout across years, with each point representing a driver’s finish, colored by track name and sized by track length. The visualization reveals patterns such as larger tracks yielding winners from farther back in the field, using d3 and vega-lite’s API to encode data fields for position, payout, track, and length. The code loads CSV data via d3.csv, renders circles with markCircle, and supports tooltips for driver and track details, drawing from a NASCAR dataset spanning 1975 to 2003.

AI-generated description

This scatterplot is an expansion upon a previous viz I created that shows NASCAR winners by starting position, split by year. That viz was very simple in that the points were all the same color, and the same size. Thus, this plot colors the points by the track name, and sizes them by the track length. This provides the viewer with an opportunity to look for patterns, particularly among tracks and track types. For example, one may notice that the larger dots (such as the 2.66 mile Talladega Superspeedway) produce a lot more winners from further back in the field than short tracks like the .526 mile long Martinsville Speedway where passing is harder. This data comes from a rendition of the NASCAR dataset, which spans from 1975 to 2003.

MIT Licensed

Similar vizzes