Metric Widget
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.
Small
The code snippet below creates a Metric widget and mountsο»Ώ it to the DOM:
The Metric widget requires additional configuration parameters that describes which parameter should be displayed.
Property | Description |
---|---|
parameter string | Metric of choice |
List of available metricsο»Ώ:
- "resting_heart_rate"
- "resting_respiratory_rate"
- "mental_stress"
- "mental_health_risk"
- "sleep_quality"
- "energy_balance"
- "general_fitness_level"
Two variations of the Metric widget are available:
- "default"
- "arc"
The Metric Widget allows individual fine-tuning of the appearanceο»Ώ.
The used accent colors are:
- Functional Primary 500
- Functional Secondary 500
- Functional Tertiary 500
Retrieve the metric widget data in JSON format using the Rest APIο»Ώ. The data field of the response body describes the widget properties.
The metric widget consists of the following fields (similar to the biomarker widget):
- The value is the actual numerical value. It can be an integer or a floating point number.
- The unit holds a textual value for the unit of the parameter.
- The range represents the entire span of possible values for that the parameter, indicated by minimum and a maximum.
- The zone indicates where the actual value falls, among three categories related to the health condition:
- "good" (zone: 1)
- "neutral" (zone: 2)
- "bad" (zone: 3)
- The optimum defines how the range should be interpreted and visualized. There are three possible values for optimum: "low," "high," and "middle."
- For "low": Lower values are categorized as "good" (green color), while higher values are categorized as "bad" (red color)
- For "high": Higher values are categorized as "good" (green color), while lower values are categorized as "bad" (red color).
- For "middle": The "good" zone (green color) is centered around the middle of the range. Values lower or higher than this midpoint are categorized as "bad" (red color).
ο»Ώ