Widgets
Graph Widget
intro the graph widget offers a dynamic way to visualise the progression of a specific biomarker or metric over time it enables users to track changes in their health status and gain insights into long term patterns easily integrate it into your platform to help users understand how their health evolves layout medium intelliwidgets js sdk docid\ dekcuoaphrmczxe caj5v usage creating the widget the code snippet below creates a graph widget and widgets 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( "#hr graph tile", "graph", config, variation, themeoverrides ); config the graph widget requires additional configuration parameters that describe which parameter should be displayed specify the timerange and page to select a specific portion of the data config const config = { parameter "heart rate", title "heart rate graph", start "2024 12 21", stop "2024 12 31" } property description parameter string biomarker or metric of choice title nullable string optionally override the graph title with a string value of choice start nullable date string start date for the range of historical data to be retrieved format yyyy mm dd default today 8 days stop nullable date string start date for the range of historical data to be retrieved format yyyy mm dd default today list of available biomarkers docid\ buhj nt45fuxcpges0qph and metrics docid\ yeqwskx81eju z8n3djhy parameter layouts heart rate medium respiratory rate medium resonant breathing score medium heart rate variability medium resting heart rate medium resting respiratory rate medium mental stress medium mental health risk medium sleep quality medium energy balance medium variation only one variation of the graph widget is available "default" theme overrides the graph widget allows widget appearance the used accent colors are brand primary support 500