Think I fixed the legend display issue.
Fixed to take in variable number of vehicles.