Metric Widget
Introduction
The Metric Widget presents a high-level interpretation based on metrics derived from data collected over an extended period. By aggregating multiple measurements, it offers users a broader understanding of their health trends and insights. Ideal for users interested in comprehensive health tracking, this widget can display aggregated values like stress levels or fitness scores. Itβs designed to provide an overview that aids in interpreting long-term health progress.

For more information on the metric widget's structure and functionalities, refer to our product documentation: Metricsο»Ώ .
Usage
Creating the widget
ο»ΏThe code snippet below creates a Metric widget and mountsο»Ώ it to the DOM:ο»Ώ
const intelli = IntelliProveWidgets("user_action_token");
const config = { /* config */ };
const variation = "default";
const themeOverrides = { /* theme overrides */ };
intelli.mountWidget(
"#heart-rate-tile",
"metric",
config,
variation,
themeOverrides
);Config
The Metric widget requires additional configuration parameters that describes which parameter should be displayed.
const config = {
parameter: "sleep_quality"
}Property | Description |
|---|---|
parameter string | Metric of choice |
List of available metricsο»Ώ:
Parameter |
|---|
mental_health_risk |
mental_stress |
sleep_quality |
energy_balance |
general_fitness |
hypertension_risk |
Note: The General Fitness Level widget is specified by general_fitness in the V2 SDK. Throughout the rest of the product, including the API and the V1 SDK, the programmatic name is general_fitness_level. We realise this is inconsistent, and a fix is on the way to support using general_fitness_level in the V2 SDK as well.d
Variation
Reserved for future use.
Theme Overrides
The Metric Widget allows individual fine-tuning of the appearanceο»Ώ.