This examples demonstrates retrieving trips and plotting the vehicle's odometer reading over time.
Your vehicles are retrieved using an initial API request for all Device entities. Then when one is selected, the current odometer value is retrieved if available. Then, the vehicle's trips are used to count backward the distance travelled. Each trip distance is plotted on the chart.