The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/docs/sources/panels-visualizations/visualizations/time-series/index.md

16 KiB

aliases keywords labels description title weight
[../../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/] [grafana graph panel time series panel documentation guide graph] [{products [cloud enterprise oss]}] Configure options for Grafana's time series visualization Time series 10

Time series

{{< figure src="/static/img/docs/time-series-panel/time_series_small_example.png" max-width="1200px" caption="Time series" >}}

Time series visualizations are the default and primary way to visualize time series data as a graph. They can render series as lines, points, or bars. They're versatile enough to display almost any time-series data.

{{% admonition type="note" %}} You can migrate from the old Graph visualization to the new time series visualization. To migrate, open the panel and click the Migrate button in the side pane. {{% /admonition %}}

The following video guides you through the creation steps and common customizations of time series visualizations and is great for beginners:

{{< youtube id="RKtW87cPxsw" >}}

{{< docs/play title="Time Series Visualizations in Grafana" url="https://play.grafana.org/d/000000016/" >}}

Tooltip options

Tooltip options control the information overlay that appears when you hover over data points in the graph.

{{< docs/shared lookup="visualizations/tooltip-mode.md" source="grafana" version="" >}}

Hover proximity

This option controls how close your cursor must be to a data point before the tooltip appears. Values are in pixels.

Legend options

Legend options control the series names and statistics that appear under or to the right of the graph.

{{< docs/shared lookup="visualizations/legend-mode.md" source="grafana" version="" >}}

Graph styles

Use this option to define how to display your time series data. You can use overrides to combine multiple styles in the same graph.

  • Lines
  • Bars
  • Points

Style modes

Bar alignment

Set the position of the bar relative to a data point. In the examples below, Show points is set to Always which makes it easier to see the difference this setting makes. The points do not change; the bars change in relationship to the points.

  • Before Bar alignment before icon The bar is drawn before the point. The point is placed on the trailing corner of the bar.
  • Center Bar alignment center icon The bar is drawn around the point. The point is placed in the center of the bar. This is the default.
  • After Bar alignment after icon The bar is drawn after the point. The point is placed on the leading corner of the bar.

Line width

Line width is a slider that controls the thickness for series lines or the outline for bars.

Line thickness 5 example

Fill opacity

Use opacity to specify the series area fill color.

Fill opacity examples

Gradient mode

Gradient mode specifies the gradient fill, which is based on the series color. To change the color, use the standard color scheme field option. For more information, refer to [Color scheme][].

  • None: No gradient fill. This is the default setting.
  • Opacity: An opacity gradient where the opacity of the fill increases as y-axis values increase.
  • Hue: A subtle gradient that is based on the hue of the series color.
  • Scheme: A color gradient defined by your [Color scheme][]. This setting is used for the fill area and line. For more information about scheme, refer to Scheme gradient mode.

Gradient appearance is influenced by the Fill opacity setting. The following image show, the Fill opacity is set to 50.

Gradient mode examples

Show points

You can configure your visualization to add points to lines or bars.

  • Auto: Grafana determines to show or not to show points based on the density of the data. If the density is low, then points appear.
  • Always: Show the points regardless of how dense the data set is.
  • Never: Do not show points.

Point size

Set the size of the points, from 1 to 40 pixels in diameter.

Line interpolation

This option controls how the graph interpolates the series line.

Line interpolation option

  • Linear: Points are joined by straight lines.
  • Smooth: Points are joined by curved lines that smooths transitions between points.
  • Step before: The line is displayed as steps between points. Points are rendered at the end of the step.
  • Step after: The line is displayed as steps between points. Points are rendered at the beginning of the step.

Line style

Set the style of the line. To change the color, use the standard [color scheme][] field option.

Line style option

  • Solid: Display a solid line. This is the default setting.
  • Dash: Display a dashed line. When you choose this option, a list appears for you to select the length and gap (length, gap) for the line dashes. Dash spacing set to 10, 10 (default).
  • Dots: Display dotted lines. When you choose this option, a list appears for you to select the gap (length = 0, gap) for the dot spacing. Dot spacing set to 0, 10 (default)

Line styles examples

{{< docs/shared lookup="visualizations/connect-null-values.md" source="grafana" version="" >}}

{{< docs/shared lookup="visualizations/disconnect-values.md" source="grafana" version="" >}}

Stack series

Stacking allows Grafana to display series on top of each other. Be cautious when using stacking in the visualization as it can easily create misleading graphs. To read more about why stacking might not be the best approach, refer to The issue with stacking.

Stack option

  • Off: Turns off series stacking. When Off, all series share the same space in the visualization.
  • Normal: Stacks series on top of each other.
  • 100%: Stack by percentage where all series add up to 100%.

Stack series in groups

The stacking group option is only available as an override. For more information about creating an override, refer to [Configure field overrides][].

  1. Edit the panel and click Overrides.

  2. Create a field override for the Stack series option.

  3. In stacking mode, click Normal.

  4. Name the stacking group in which you want the series to appear.

    The stacking group name option is only available when you create an override.

Fill below to

The Fill below to option fills the area between two series. This option is only available as a series/field override.

  1. Edit the panel and click Overrides.
  2. Select the fields to fill below.
  3. In Add override property, select Fill below to.
  4. Select the series for which you want the fill to stop.

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.

{{< figure src="/static/img/docs/time-series-panel/fill-below-to-7-4.png" max-width="600px" caption="Fill below to example" >}}

Axis options

Options under the axis category change how the x- and y-axes are rendered. Some options do not take effect until you click outside of the field option box you are editing. You can also or press Enter.

Time zone

Set the desired time zone(s) to display along the x-axis.

Placement

Select the placement of the y-axis.

  • Auto: Automatically assigns the y-axis to the series. When there are two or more series with different units, Grafana assigns the left axis to the first unit and the right axis to the units that follow.
  • Left: Display all y-axes on the left side.
  • Right: Display all y-axes on the right side.
  • Hidden: Hide all axes.

To selectively hide axes, [Add a field override][] that targets specific fields.

Label

Set a y-axis text label. If you have more than one y-axis, then you can assign different labels using an override.

Width

Set a fixed width of the axis. By default, Grafana dynamically calculates the width of an axis.

By setting the width of the axis, data with different axes types can share the same display proportions. This setting makes it easier for you to compare more than one graph’s worth of data because the axes are not shifted or stretched within visual proximity to each other.

Show grid lines

Set the axis grid line visibility.

  • Auto: Automatically show grid lines based on the density of the data.
  • On: Always show grid lines.
  • Off: Never show grid lines.

Color

Set the color of the axis.

  • Text: Set the color based on theme text color.
  • Series: Set the color based on the series color.

Show border

Set the axis border visibility.

Scale

Set the y-axis values scale.

  • Linear: Divides the scale into equal parts.
  • Logarithmic: Use a logarithmic scale. When you select this option, a list appears for you to choose a binary (base 2) or common (base 10) logarithmic scale.
  • Symlog: Use a symmetrical logarithmic scale. When you select this option, a list appears for you to choose a binary (base 2) or common (base 10) logarithmic scale. The linear threshold option allows you to set the threshold at which the scale changes from linear to logarithmic.

Centered zero

Set the y-axis to be centered on zero.

Soft min and soft max

Set a Soft min or soft max option for better control of y-axis limits. By default, Grafana sets the range for the y-axis automatically based on the dataset.

Soft min and soft max settings can prevent small variations in the data from being magnified when it's mostly flat. In contrast, hard min and max values help prevent obscuring useful detail in the data by clipping intermittent spikes past a specific point.

To define hard limits of the y-axis, set standard min/max options. For more information, refer to [Configure standard options][].

Label example

Transform

Use this option to transform the series values without affecting the values shown in the tooltip, context menu, or legend.

  • Negative Y transform: Flip the results to negative values on the Y axis.
  • Constant: Show the first value as a constant line.

{{% admonition type="note" %}} The transform option is only available as an override. {{% /admonition %}}

{{< docs/shared lookup="visualizations/multiple-y-axes.md" source="grafana" version="" leveloffset="+2" >}}

Color options

By default, the graph uses the standard [Color scheme][] option to assign series colors. You can also use the legend to open the color picker by clicking the legend series color icon. Setting color this way automatically creates an override rule that set's a specific color for a specific series.

Classic palette

The most common setup is to use the Classic palette for graphs. This scheme automatically assigns a color for each field or series based on its order. If the order of a field changes in your query, the color also changes. You can manually configure a color for a specific field using an override rule.

Single color

Use this mode to specify a color. You can also click the colored line icon next to each series in the Legend to open the color picker. This automatically creates a new override that sets the color scheme to single color and the selected color.

By value color schemes

If you select a by value color scheme like From thresholds (by value) or Green-Yellow-Red (by value), the Color series by option appears. This option controls which value (Last, Min, Max) to use to assign the series its color.

Scheme gradient mode

The Gradient mode option located under the Graph styles has a mode named Scheme. When you enable Scheme, the line or bar receives a gradient color defined from the selected Color scheme.

From thresholds

If the Color scheme is set to From thresholds (by value) and Gradient mode is set to Scheme, then the line or bar color changes as they cross the defined thresholds.

{{< figure src="/static/img/docs/time-series-panel/gradient_mode_scheme_thresholds_line.png" max-width="1200px" caption="Colors scheme: From thresholds" >}}

The following image shows bars mode enabled.

{{< figure src="/static/img/docs/time-series-panel/gradient_mode_scheme_thresholds_bars.png" max-width="1200px" caption="Color scheme: From thresholds" >}}

Gradient color schemes

The following image shows a line chart with the Green-Yellow-Red (by value) color scheme option selected.

{{< figure src="/static/img/docs/time-series-panel/gradient_mode_scheme_line.png" max-width="1200px" caption="Color scheme: Green-Yellow-Red" >}}

The following image shows a bar chart with the Green-Yellow-Red (by value) color scheme option selected.

{{< figure src="/static/img/docs/time-series-panel/gradient_mode_scheme_bars.png" max-width="1200px" caption="Color scheme: Green-Yellow-Red" >}}

{{% docs/reference %}} [Color scheme]: "/docs/grafana/ -> /docs/grafana//panels-visualizations/configure-standard-options#color-scheme" [Color scheme]: "/docs/grafana-cloud/ -> /docs/grafana//panels-visualizations/configure-standard-options#color-scheme"

[Add a field override]: "/docs/grafana/ -> /docs/grafana//panels-visualizations/configure-overrides#add-a-field-override" [Add a field override]: "/docs/grafana-cloud/ -> /docs/grafana//panels-visualizations/configure-overrides#add-a-field-override"

[Configure standard options]: "/docs/grafana/ -> /docs/grafana//panels-visualizations/configure-standard-options#max" [Configure standard options]: "/docs/grafana-cloud/ -> /docs/grafana//panels-visualizations/configure-standard-options#max"

[color scheme]: "/docs/grafana/ -> /docs/grafana//panels-visualizations/configure-standard-options#color-scheme" [color scheme]: "/docs/grafana-cloud/ -> /docs/grafana//panels-visualizations/configure-standard-options#color-scheme"

[Configure field overrides]: "/docs/grafana/ -> /docs/grafana//panels-visualizations/configure-overrides" [Configure field overrides]: "/docs/grafana-cloud/ -> /docs/grafana//panels-visualizations/configure-overrides" {{% /docs/reference %}}