Skip to main content
100%

for strava stream requests, assuming x/y mapping

✓ Published0🌍 Public
Aalanmclean
Last edited Jun 26, 2014
Created on Jun 26, 2014

This example shows how to fetch and format athletic activity streams from the Strava API, mapping one stream type against another (such as heart rate against distance). The visualization relies on a custom `streamLoader` object built with Backbone.Events and Underscore, which constructs a JSONP request to the Strava v3 API using the provided access token. On success, it parses the returned stream arrays, pairs the x and y values into individual data points, and triggers a ready event with the formatted dataset. The code uses jQuery’s `ajax` method for the JSONP call and demonstrates a reusable pattern for loading and preparing streaming activity data.

AI-generated description

Similar vizzes