Add trip as an argument to drawGraph so it can extract data from trip.