

# State timeline
<a name="v12-panels-state-timeline"></a>

****  
This documentation topic is designed for Grafana workspaces that support **Grafana version 12.x**.  
For Grafana workspaces that support Grafana version 10.x, see [Working in Grafana version 10](using-grafana-v10.md).  
For Grafana workspaces that support Grafana version 9.x, see [Working in Grafana version 9](using-grafana-v9.md).  
For Grafana workspaces that support Grafana version 8.x, see [Working in Grafana version 8](using-grafana-v8.md).

State timelines show discrete state changes over time. Each field or series is rendered as its unique horizontal band. State regions can either be rendered with or without values. This panel works well with string or boolean states but can also be used with time series. When used with time series, the thresholds are used to turn the numerical values into discrete state regions. State timeline visualizations support pagination, making it easier to navigate large datasets.

![\[An image showing an example of a state timeline visualizations in Grafana.\]](http://docs.aws.amazon.com/grafana/latest/userguide/images/viz/state_timeline_example.png)


## State timeline options
<a name="v12-panels-state-timeline-options"></a>

Use these options to refine your visualizations:

**Merge equal consecutive values**

Controls whether Grafana merges identical values if they are next to each other.

**Show values**

Controls whether values are rendered inside the state regions. **Auto** will render values if there is sufficient space.

**Align values**

Controls value alignment inside state regions.

**Row height**

Controls space between rows. 1 = no space = 0.5 = 50% space.

**Line width**

Controls the line width of state regions.

**Fill opacity**

Controls the opacity of state regions.

**Connect null values**

Choose how null values, which are gaps in the data, appear on the graph. Null values can be connected to form a continuous line or set to a threshold above which gaps in the data are no longer connected.
+ **Never** – Time series data points with gaps in the data are never connected.
+ **Always** – Time series data points with gaps in the data are always connected.
+ **Threshold** – Specify a threshold above which gaps in the data are no longer connected. This can be useful when the connected gaps in the data are of a known size or within a known range, and gaps outside this range should no longer be connected.

**Disconnect values**

Choose whether to set a threshold above which values in the data should be disconnected.
+ **Never** – Time series data points in the data are never disconnected.
+ **Threshold** – Specify a threshold above which values in the data are disconnected. This can be useful when desired values in the data are of a known size or within a known range, and values outside this range should no longer be connected.

## Value mappings
<a name="v12-panels-state-timeline-valuemap"></a>

To assign colors to boolean or string values, use [Configure value mappings](v12-panels-configure-value-mappings.md).

## Time series data with thresholds
<a name="v12-panels-state-timeline-threshold"></a>

The visualization can be used with time series data as well. In this case, the thresholds are used to turn the time series into discrete colored state regions.

## Legend options
<a name="v12-panels-state-timeline-legend"></a>

When the legend option is enabled, it can show either the value mappings or the threshold brackets. To show the value mappings in the legend, it’s important that the **Color scheme** option under Standard options is set to **Single color** or **Classic palette**. To see the threshold brackets in the legend, set the **Color scheme** to **From thresholds**.

**Legend mode**

Use these settings to define how the legend appears in your visualization. For more information about the legend, refer to [Configure a legend](v12-panels-configure-legend.md).
+ **List** – Displays the legend as a list. This is the default mode.
+ **Table** – Displays the legend as a table.
+ **Hidden** – Hides the legend.

**Legend placement**

Choose where to display the legend.
+ **Bottom** – Below the graph.
+ **Right** – To the right of the graph.

**Legend values**

Choose which of the [standard calculations](v12-panels-calculation-types.md) to show in the legend. You can have more than one.