# Time series last value

Widget that displays the last value obtained in a time series.

## How it works

{{< staticImage "ux/TimeserieLastValue/Widget/TimeseriesLastValueWidget.png" "Time Series last value" >}}

The information can be displayed in various formats: graphically, symbolically, and textually.

We can also check its history and statistics: trend, maximum and minimum, percentile, mean, and median.

### Widget Menu

{{< staticImage "ux/TimeserieLastValue/Widget/TimeseriesLastValueWidgetActions.png" "Menu action list" >}}

The following actions can be performed:

- **Open device information:** opens a temporary dashboard with device information
- **Edit:** opens the device wizard
- **Open device details:** opens the device information wizard
- **Generate QR:** generates a QR code that will return basic information about the device
- **Historical data:** "Time Series data list" widget in table format, showing the time series' history
- **View Chart:** "Time Series history" widget that displays the evolution of the time series
- **Execute operation:** opens the operation execution wizard to perform an operation on the device
{{% ux-widget-menu-actions %}}

## Configuration

{{% ux-widget-configuration %}}
- **Organization:** Organization of the desired time series
- **Time Series:** Time Series source
- **Value column:** Column to read the value
- **Date column:** Column to read the date of the value and for stats
- **Entity key:** Device to display
- **DatastreamId:** Data stream whose last value (and its statistics) will be displayed

{{< staticImage "ux/TimeserieLastValue/Configuration/TimeseriesLastValueConfigGeneral.png" "Configuration General" >}}

{{% ux-details-configuration-top %}}
{{< staticImage "ux/EntityLastValue/Configuration/ConfChart.png" "Conf chart" >}}
{{% ux-details-configuration-bottom %}}
{{% ux-details-configuration-formatter %}}

### Advanced

{{< staticImage "ux/TimeserieLastValue/Configuration/TimeseriesLastValueConfigAdvanced.png" "Configuration Advanced" >}}

- **Historical data graph:** Display a graph showing the value's evolution over time
- **Statistical data graph:** Display statistical data
- **Choose a period:** Time frame for sampling the statistical data and its visualization in the value evolution graph
- **Trend:** Assign a color based on the value's trend

### Visualization

{{< staticImage "ux/TimeserieLastValue/Configuration/TimeseriesLastValueConfigVisualization.png" "Configuration Visualization" >}}

We can configure certain elements of the graphs displayed in the widget:

- **Background color** background color for the widget
- **Hide details header panel:** Removes the menu allowing for the modification of the type of visualization as well as the type of value to display.

{{% children sort="weight" depth="10" %}}

---
