NASCAR Most Starts Before First Win, Dropdown Added
This bar chart displays NASCAR drivers ranked by the number of starts before their first career win, with bars colored by the track where that win occurred. A dropdown menu allows filtering to show only drivers who won at a selected track, with non-matching bars faded via opacity. Hovering reveals tooltips with the driver, track, and start count. The visualization uses the vega-lite-api library with vega, vega-lite, and a d3.csv loader, sourcing data from a gist of NASCAR race records from 1975 to 2003.
AI-generated descriptionThis bar chart is an expansion on a previous viz I created which shows the number of starts it took each winner in the dataset to win their first race. While the data is the same, this version incorporates the idea of being able to hover over one of the bars, and get information on that driver's first win. Highlighted data includes the number of starts it took, and the track they won on. The bars are also colored by the track they won on. This data is a rendition of the NASCAR dataset, which contains information on races from 1975 to 2003.
Goal: When added to the dashboard, I would like this viz to filter out the bars pertaining to the selected track (if there are any).