For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Visualization widgets are in beta, and we're planning to add more templates over time. If you have any specific requests for new templates or feedback on existing templates, please reach out to our product team via the support center.

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

ID
Metric

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

Config field
Description

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.

Social Jetlag Template

The template requires sleep data for a minimum of 10 workdays and 4 holidays to calculate and visualize the Social Jet Lag. If the data threshold is not met, the widget will indicate to the user that more data is required.

Optional Parameters

Optional Config field
Description

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"].

The widget auto-sizes its content vertically. If embedded in a scrollable container, listen for the height messages the widget posts to the parent window and resize the iframe accordingly.

Last updated