Skip to main content
100%

Fork of NASCAR Starts Revised - Hover Capability Added

✓ Published0🌍 Public
EEngineerRajeev
Last edited Nov 24, 2021
Created on Nov 24, 2021

This bar chart visualizes the number of starts each NASCAR driver needed before their first race win, using data spanning 1975 to 2003. Hovering over a bar reveals a tooltip with that driver’s start count, win year, and track, powered by the d3-tip library. The chart uses d3.scaleBand and d3.scaleLinear for axes, with SVG rendering and mouseover/mouseout events to trigger the tooltip’s show and hide methods.

AI-generated description

This 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. This comes from the NASCAR dataset, which spans from 1975 to 2003. 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, the year, and the track they won on.

**Fix: The Y-axis

MIT Licensed

Similar vizzes