# Data stream Last Value

Widget that displays the last value obtained for a data stream.

## How it works

{{< staticImage "ux/EntityLastValue/Widget/EntityLastValueWidget.png" "Entity 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/EntityLastValue/Widget/MenuActionList.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:** "Data Points" widget in table format, showing the data stream's history
- **View Chart:** "Data Stream history" widget that displays the evolution of the data stream
- **Execute operation:** opens the operation execution wizard to perform an operation on the device
{{% ux-widget-menu-actions %}}

## Configuration

{{< staticImage "ux/EntityLastValue/Configuration/ConfEntityLastValue.png" "Configuration" >}}

{{% ux-widget-configuration %}}

{{< staticImage "ux/EntityLastValue/Configuration/ConfGeneral.png" "General" >}}

- **Entity key:** Device to display
- **DatastreamId:** Data stream whose last value (and its statistics) will be displayed
  {{% ux-details-configuration-top %}}
  {{< staticImage "ux/EntityLastValue/Configuration/ConfChart.png" "Conf chart" >}}
  {{% ux-details-configuration-bottom %}}
  {{% ux-details-configuration-formatter %}}

### Advanced

{{< staticImage "ux/EntityLastValue/Configuration/ConfAdvanced.png" "General" >}}

- **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/EntityLastValue/Configuration/ConfVisualization.png" "Visualization" >}}

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

- **Background color**
- **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" %}}

---
