Skip to main content
100%

Plot of Top 10 NASCAR Winners colored by Track

✓ Published5🌍 Public
RRobert Johnson
Last edited Nov 20, 2021
Created on Oct 27, 2021

This bar chart visualizes the top 10 NASCAR drivers by total wins between 1975 and 2003, with each bar segmented and colored by the specific tracks where those wins occurred. A tooltip reveals the track name and win count for each segment. The visualization uses Vega-Lite API with d3.v5 to fetch CSV data, filter for top drivers via an `IsInTop10` field, and apply a custom color scale for each track. The chart’s stacked bars highlight the distribution of victories across different racetracks for each driver.

AI-generated description

This bar chart displays the top 10 drivers in terms of wins in the dataset, with the bars broken down and colored by their wins at particular tracks. So, for example, the driver Darrell Waltrip leads drivers during this time period with 84 wins, and those wins are split by the tracks they occured at. A tooltip was added to display the track name, and the number of wins there. In order to display just the top 10, a variable was added to the dataset called "IsInTop10" and added to rows for those drivers. This data comes from a rendition of the NASCAR dataset, which spans from 1975 to 2003.

Goal: When added to the dashboard, I would like this viz to highlight the portion of the bars pertaining to the selected track.

MIT Licensed

Similar vizzes