For each race, the winner and the runner-up are compared. If the runner-up finished on the lead lap the gap is in seconds; if lapped, in laps.
Bar height is the estimated gap in seconds. For lapped drivers the gap is estimated from the leader's average lap time and how far behind they were at the flag.