IntelliWidgets
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 layout for more information on the metric widgets structure and functionalities, refer to our product documentation metric widget docid\ mfrm6yjoqas0hrpk4h i intelliwidgets js sdk docid\ fmag0np7ldler92db4x i usage creating the widget the code snippet below creates a metric widget and intelliwidgets docid\ sxvsw2jfsohr7xbxeyz j it to the dom create and mount widget 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 config const config = { parameter "sleep quality" } property description parameter string metric of choice list of available metrics docid\ yeqwskx81eju z8n3djhy 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 widget appearance