# Trends Chart

## Intro

The trends chart is a standalone component that renders a single chart. It is part of the Trends Widget but can also be integrated independently.

This chart is part of the [Main Widget](https://docs.intelliprove.com/technical-docs/main-widget) ([Trends Module](https://docs.intelliprove.com/technical-docs/trends-module)), but can be used on it’s own as well.

## Set-up

The Trends chart is available under the HTML tag `ip-trends-chart`. Ensure to nest it somewhere within your `ip-session` , as described in the [Set-up](https://docs.intelliprove.com/technical-docs/set-up) documentation.

#### Properties

|  | **Requirement** | **Description** | **Default value** |
| --- | --- | --- | --- |
| **type** | **required** | `"energy-balance" | "general-fitness" | "hypertension" | "mental-health-risk" | "mental-stress" | "sleep-quality" | "heart-rate" | "heart-rate-variability" | "respiratory-rate" | "resonant-breathing-score" | "systolic-blood-pressure" | "diastolic-blood-pressure" | "fitness" | "recovery" | "resilience"`  
  
Selects the chart you want to display. | –– |

#### Usage

```html
<ip-session
  action-token="eyJhbG..."
  language="en-GB"
>
  <!-- IntelliProve components go here -->
  <ip-trends-chart type="energy-balance"></ip-trends-chart>
</ip-session>
```
