2022-08-12 14:20:23 +08:00
---
aliases:
2022-12-10 00:36:04 +08:00
- ../../features/panels/histogram/
- ../../panels/visualizations/time-series/
- ../../panels/visualizations/time-series/annotate-time-series/
- ../../panels/visualizations/time-series/change-axis-display/
- ../../panels/visualizations/time-series/graph-color-scheme/
- ../../panels/visualizations/time-series/graph-time-series-as-bars/
- ../../panels/visualizations/time-series/graph-time-series-as-lines/
- ../../panels/visualizations/time-series/graph-time-series-as-points/
- ../../panels/visualizations/time-series/graph-time-series-stacking/
- ../../visualizations/time-series/
- ../../visualizations/time-series/annotate-time-series/
- ../../visualizations/time-series/change-axis-display/
- ../../visualizations/time-series/graph-color-scheme/
- ../../visualizations/time-series/graph-time-series-as-bars/
- ../../visualizations/time-series/graph-time-series-as-lines/
- ../../visualizations/time-series/graph-time-series-as-points/
- ../../visualizations/time-series/graph-time-series-stacking/
2022-08-12 14:20:23 +08:00
keywords:
- grafana
- graph panel
- time series panel
- documentation
- guide
- graph
Explicitly set all front matter labels in the source files (#71548)
* Set every page to have defaults of 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/enterprise-licensing pages to have 'Enterprise' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/recorded-queries pages to have labels cloud,enterprise
* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/stats-and-license pages to have labels cloud,enterprise
* Set alerting pages to have labels cloud,enterprise,oss
* Set breaking-changes pages to have labels cloud,enterprise,oss
* Set dashboards pages to have labels cloud,enterprise,oss
* Set datasources pages to have labels cloud,enterprise,oss
* Set explore pages to have labels cloud,enterprise,oss
* Set fundamentals pages to have labels cloud,enterprise,oss
* Set introduction/grafana-cloud pages to have labels cloud
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Fix introduction pages products
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set panels-visualizations pages to have labels cloud,enterprise,oss
* Set release-notes pages to have labels cloud,enterprise,oss
* Set search pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set troubleshooting pages to have labels cloud,enterprise,oss
* Set whatsnew pages to have labels cloud,enterprise,oss
* Apply updated labels from review
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 16:10:12 +08:00
labels:
products:
- cloud
- enterprise
- oss
2023-12-13 04:27:29 +08:00
description: Configure options for Grafana's time series visualization
2022-08-12 14:20:23 +08:00
title: Time series
2024-07-19 01:19:06 +08:00
menuTitle: Time series
2023-09-01 02:31:37 +08:00
weight: 10
2024-05-21 23:16:47 +08:00
refs:
configure-standard-options:
2024-05-22 22:40:20 +08:00
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/configure-standard-options/#max
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/configure-standard-options/#max
color-scheme:
2024-05-22 22:40:20 +08:00
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/configure-standard-options/#color-scheme
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/configure-standard-options/#color-scheme
add-a-field-override:
2024-05-22 22:40:20 +08:00
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/configure-overrides/#add-a-field-override
2024-05-21 23:16:47 +08:00
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/configure-overrides/#add-a-field-override
2024-05-22 22:40:20 +08:00
configure-field-overrides:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/configure-overrides/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/configure-overrides/
2024-06-06 21:19:59 +08:00
link-alert:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/alerting-rules/create-grafana-managed-rule/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/alerting-and-irm/alerting/alerting-rules/create-grafana-managed-rule/
2024-08-02 04:58:53 +08:00
panel-editor-alerts:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/panel-editor-overview/#data-section
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/panel-editor-overview/#data-section
2024-08-27 05:25:05 +08:00
data-transformation:
- pattern: /docs/grafana/
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/panel-editor-overview/#data-section
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/visualizations/panels-visualizations/panel-editor-overview/#data-section
2022-08-12 14:20:23 +08:00
---
# Time series
2024-08-27 05:25:05 +08:00
Time series visualizations are the default way to show the variations of a set of data values over time. Each data point is matched to a timestamp and this _time series_ is displayed as a graph. The visualization can render series as lines, points, or bars and it's versatile enough to display almost any type of [time-series data ](https://grafana.com/docs/grafana/<GRAFANA_VERSION>/fundamentals/timeseries/ ).
2022-08-12 14:20:23 +08:00
2024-07-19 01:19:06 +08:00
{{< figure src = "/static/img/docs/time-series-panel/time_series_small_example.png" max-width = "1200px" alt = "Time series" > }}
2024-06-06 21:19:59 +08:00
2024-07-19 01:19:06 +08:00
{{< admonition type = "note" > }}
2024-08-02 04:58:53 +08:00
You can migrate from the legacy Graph visualization to the time series visualization. To migrate, open the panel and click the **Migrate** button in the side pane.
2024-07-19 01:19:06 +08:00
{{< / admonition > }}
2024-08-27 05:25:05 +08:00
A time series visualization displays an x-y graph with time progression on the x-axis and the magnitude of the values on the y-axis. This visualization is ideal for displaying large numbers of timed data points that would be hard to track in a table or list.
You can use the time series visualization if you need track:
- Temperature variations throughout the day
- The daily progress of your retirement account
- The distance you jog each day over the course of a year
2024-07-19 01:19:06 +08:00
## Configure a time series visualization
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
The following video guides you through the creation steps and common customizations of time series visualizations, and is great for beginners:
2024-03-27 22:32:56 +08:00
{{< youtube id = "RKtW87cPxsw" > }}
2024-04-12 01:17:16 +08:00
{{< docs / play title = "Time Series Visualizations in Grafana" url = "https://play.grafana.org/d/000000016/" > }}
2024-07-19 01:19:06 +08:00
## Supported data formats
2022-08-12 14:20:23 +08:00
2024-08-27 05:25:05 +08:00
Time series visualizations require time-series data—a sequence of measurements, ordered in time, and formatted as a table—where every row in the table represents one individual measurement at a specific time. Learn more about [time-series data ](https://grafana.com/docs/grafana/<GRAFANA_VERSION>/fundamentals/timeseries/ ).
The dataset must contain at least one numeric field, and in the case of multiple numeric fields, each one is plotted as a new line, point, or bar labeled with the field name in the tooltip.
### Example 1
In the following example, there are three numeric fields represented by three lines in the chart:
| Time | value1 | value2 | value3 |
| ------------------- | ------ | ------ | ------ |
| 2022-11-01 10:00:00 | 1 | 2 | 3 |
| 2022-11-01 11:00:00 | 4 | 5 | 6 |
| 2022-11-01 12:00:00 | 7 | 8 | 9 |
| 2022-11-01 13:00:00 | 4 | 5 | 6 |

If the time field isn't automatically detected, you might need to convert the data to a time format using a [data transformation ](ref:data-transformation ).
### Example 2
The time series visualization also supports multiple datasets. If all datasets are in the correct format, the visualization plots the numeric fields of all datasets and labels them using the column name of the field.
#### Query1
| Time | value1 | value2 | value3 |
| ------------------- | ------ | ------ | ------ |
| 2022-11-01 10:00:00 | 1 | 2 | 3 |
| 2022-11-01 11:00:00 | 4 | 5 | 6 |
| 2022-11-01 12:00:00 | 7 | 8 | 9 |
#### Query2
| timestamp | number1 | number2 | number3 |
| ------------------- | ------- | ------- | ------- |
| 2022-11-01 10:30:00 | 11 | 12 | 13 |
| 2022-11-01 11:30:00 | 14 | 15 | 16 |
| 2022-11-01 12:30:00 | 17 | 18 | 19 |
| 2022-11-01 13:30:00 | 14 | 15 | 16 |

### Example 3
If you want to more easily compare events between different, but overlapping, time frames, you can do this by using a time offset while querying the compared dataset:
#### Query1
| Time | value1 | value2 | value3 |
| ------------------- | ------ | ------ | ------ |
| 2022-11-01 10:00:00 | 1 | 2 | 3 |
| 2022-11-01 11:00:00 | 4 | 5 | 6 |
| 2022-11-01 12:00:00 | 7 | 8 | 9 |
#### Query2
| timestamp(-30min) | number1 | number2 | number3 |
| ------------------- | ------- | ------- | ------- |
| 2022-11-01 10:30:00 | 11 | 12 | 13 |
| 2022-11-01 11:30:00 | 14 | 15 | 16 |
| 2022-11-01 12:30:00 | 17 | 18 | 19 |
| 2022-11-01 13:30:00 | 14 | 15 | 16 |

When you add the offset, the resulting visualization makes the datasets appear to be occurring at the same time so that you can compare them more easily.
2022-08-12 14:20:23 +08:00
2024-07-19 01:19:06 +08:00
## Alert rules
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
You can [link alert rules ](ref:link-alert ) to time series visualizations in the form of annotations to observe when alerts fire and are resolved. In addition, you can create alert rules from the **Alert** tab within the [panel editor ](ref:panel-editor-alerts ).
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
## Special overrides
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
The following overrides help you further refine a time series visualization.
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
### Transform override property
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
Use the **Graph styles > Transform** [override property ](#field-overrides ) to transform series values without affecting the values shown in the tooltip, context menu, or legend. Choose from the following transform options:
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
- **Constant** - Show the first value as a constant line.
- **Negative Y transform** - Flip the results to negative values on the y-axis.
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
### Fill below to override property
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
The **Graph styles > Fill below to** [override property ](#field-overrides ) fills the area between two series. When you configure the property, select the series for which you want the fill to stop.
2022-08-12 14:20:23 +08:00
The following example shows three series: Min, Max, and Value. The Min and Max series have **Line width** set to 0. Max has a **Fill below to** override set to Min, which fills the area between Max and Min with the Max line color.
2024-07-19 01:19:06 +08:00
{{< figure src = "/static/img/docs/time-series-panel/fill-below-to-7-4.png" max-width = "600px" alt = "Fill below to example" > }}
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
{{< docs / shared lookup = "visualizations/multiple-y-axes.md" source = "grafana" version = "<GRAFANA_VERSION>" leveloffset = "+2" > }}
2024-07-19 01:19:06 +08:00
## Configuration options
2022-08-12 14:20:23 +08:00
2024-08-02 04:58:53 +08:00
{{< docs / shared lookup = "visualizations/config-options-intro.md" source = "grafana" version = "<GRAFANA_VERSION>" > }}
2024-07-19 01:19:06 +08:00
### Panel options
{{< docs / shared lookup = "visualizations/panel-options.md" source = "grafana" version = "<GRAFANA_VERSION>" > }}
2023-10-20 03:55:10 +08:00
2024-07-19 01:19:06 +08:00
### Tooltip options
2023-10-20 03:55:10 +08:00
2024-07-19 01:19:06 +08:00
{{< docs / shared lookup = "visualizations/tooltip-options-2.md" source = "grafana" version = "<GRAFANA_VERSION>" leveloffset = "+1" > }}
### Legend options
{{< docs / shared lookup = "visualizations/legend-options-1.md" source = "grafana" version = "<GRAFANA_VERSION>" leveloffset = "+1" > }}
### Axis options
2025-04-04 00:30:14 +08:00
{{< docs / shared lookup = "visualizations/axis-options-1.md" source = "grafana" version = "<GRAFANA_VERSION>" leveloffset = "+1" > }}
2022-08-12 14:20:23 +08:00
2024-07-19 01:19:06 +08:00
### Graph styles options
2024-08-02 04:58:53 +08:00
The options under the **Graph styles** section let you control the general appearance of the graph, excluding [color ](#standard-options ).
2025-04-04 00:30:14 +08:00
{{< docs / shared lookup = "visualizations/graph-styles-options.md" source = "grafana" version = "<GRAFANA_VERSION>" > }}
2023-09-13 17:39:04 +08:00
2024-07-19 01:19:06 +08:00
### Standard options
2024-05-02 04:51:12 +08:00
2024-05-02 06:30:24 +08:00
{{< docs / shared lookup = "visualizations/standard-options.md" source = "grafana" version = "<GRAFANA_VERSION>" > }}
2024-05-02 04:51:12 +08:00
2025-02-27 07:35:30 +08:00
### Data links and actions
2024-05-01 04:33:31 +08:00
2025-02-14 01:52:47 +08:00
{{< docs / shared lookup = "visualizations/datalink-options-2.md" source = "grafana" version = "<GRAFANA_VERSION>" > }}
2024-05-01 04:33:31 +08:00
2024-07-19 01:19:06 +08:00
### Value mappings
2024-04-27 02:32:01 +08:00
{{< docs / shared lookup = "visualizations/value-mappings-options.md" source = "grafana" version = "<GRAFANA_VERSION>" > }}
2024-07-19 01:19:06 +08:00
### Thresholds
2024-05-02 06:30:24 +08:00
{{< docs / shared lookup = "visualizations/thresholds-options-1.md" source = "grafana" version = "<GRAFANA_VERSION>" > }}
2024-07-19 01:19:06 +08:00
### Field overrides
2024-05-02 06:10:06 +08:00
{{< docs / shared lookup = "visualizations/overrides-options.md" source = "grafana" version = "<GRAFANA_VERSION>" > }}