Visualize (Beta)
We have built ready-made, embeddable charts you can use to display your users' health data directly in your mobile/web app. All through a simple API call.
The Thryve Visualization Widget renders health data statistics and insights directly within your application based on pre-defined visualization templates. Request the visualisation specific to your user via a simple API call and embed the returned widget URL into your application.


Supported locales
Text displayed on the widget is available in multiple languages. Currently, the following ISO-639 locales are supported:
ar, bg, cs, da, de, el, en, es, et, fi, fr, hu, id, it, ja, ko, lt, lv, nl, pl, pt, ro, ru, sk, sl, sv, tr, uk
Visualization Widget Templates
Daily Totals Template
Visualizes a single daily aggregate data type over a configurable timeframe in a single template. The template supports data types showing a daily sum, like Steps, Calories Burned, Distances, and Durations. Note that the underlying data can come from multiple sources.


Supported data types
1000
Steps
1001
Covered Distance
1010
Burned Calories
1100
Activity Duration
1113
Rest Duration
1114
Active Duration
1115
Walk Duration
1715
Walk Distance
2000
Sleep Duration
Optional Parameters
timeframe
Number of days to display. Defaults to 30.
dataTypeId
The daily data type to plot. Defaults to dataTypeId=1000 (Steps).
referenceDate
The visualization timeframe is calculated backwards from this day. Expects YYYY-MM-DD format. Defaults to today (the user's local date).
Social Jet Lag Template
Visualizes the misalignment of your users' internal body clock on workdays and free days (e.g. weekends) by comparing the sleep midpoints and durations of those two groups. Data types SleepStartTime (2100) and SleepEndTime (2101) are used as inputs by the widget for this visualization.

Optional Parameters
timeframe
Number of days to visualize. Defaults to 28.
For example, if timeframe = 60, data across { Today - 60 days } will be visualized.
workdays
Defaults to ["monday", "tuesday", "wednesday", "thursday", "friday"].
holidays
Defaults to ["saturday", "sunday"].
Last updated

