Export Image
Export Code

NASCAR Dashboard Legend

Robert Johnson

Last edited Nov 15, 2021
Created on Nov 15, 2021

A legend containing the names of the NASCAR Tracks, with the dots colored by their names, so that they will be consistent with the other visualizations (Las Vegas Motor Speedway will always be the same color).

If the track names should be colored the same as the dots, replace

.style('fill', 'black')

with

.style('fill', function (d) { return color(d); })

MIT Licensed