1+++
2title = "Stat"
3description = "Stat panel documentation"
4keywords = ["grafana", "docs", "stat panel"]
5aliases = ["/docs/grafana/latest/features/panels/stat/", "/docs/grafana/latest/features/panels/singlestat/", "/docs/grafana/latest/reference/singlestat/", "/docs/grafana/latest/panels/visualizations/stat-panel/"]
6weight = 900
7+++
8
9# Stat
10
11The Stat panel visualization shows a one large stat value with an optional graph sparkline. You can control the background or value color using thresholds.
12
13{{< figure src="/static/img/docs/v66/stat_panel_dark3.png" max-width="1025px" caption="Stat panel" >}}
14
15> **Note:** This panel replaces the Singlestat panel, which was deprecated in Grafana 7.0 and removed in Grafana 8.0.
16
17By default, the Stat panel displays one of the following:
18
19- Just the value for a single series or field.
20- Both the value and name for multiple series or fields.
21
22You can use the **Text mode** to control whether the text is displayed or not.
23
24Example screenshot:
25
26{{< figure src="/static/img/docs/v71/stat-panel-text-modes.png" max-width="1025px" caption="Stat panel" >}}
27
28## Automatic layout adjustment
29
30The panel automatically adjusts the layout depending on available width and height in the dashboard. It automatically hides the graph (sparkline) if the panel becomes too small.
31
32## Value options
33
34Use the following options to refine how your visualization displays the value:
35
36### Show
37
38Choose how Grafana displays your data.
39
40#### Calculate
41
42Show a calculated value based on all rows.
43
44- **Calculation -** Select a reducer function that Grafana will use to reduce many fields to a single value. For a list of available calculations, refer to [List of calculations]({{< relref "../panels/calculations-list.md" >}}).
45- **Fields -** Select the fields display in the panel.
46
47#### All values
48
49Show a separate stat for every row. If you select this option, then you can also limit the number of rows to display.
50
51- **Limit -** The maximum number of rows to display. Default is 5,000.
52- **Fields -** Select the fields display in the panel.
53
54## Stat styles
55
56Style your visualization.
57
58### Orientation
59
60Choose a stacking direction.
61
62- **Auto -** Grafana selects what it thinks is the best orientation.
63- **Horizontal -** Bars stretch horizontally, left to right.
64- **Vertical -** Bars stretch vertically, top to bottom.
65
66### Text mode
67
68You can use the Text mode option to control what text the panel renders. If the value is not important, only the name and color is, then change the **Text mode** to **Name**. The value will still be used to determine color and is displayed in a tooltip.
69
70- **Auto -** If the data contains multiple series or fields, show both name and value.
71- **Value -** Show only value, never name. Name is displayed in the hover tooltip instead.
72- **Value and name -** Always show value and name.
73- **Name -** Show name instead of value. Value is displayed in the hover tooltip.
74- **None -** Show nothing (empty). Name and value are displayed in the hover tooltip.
75
76### Color mode
77
78Select a color mode.
79
80- **Value -** Colors only the value and graph area.
81- **Background -** Colors the background as well.
82
83### Graph mode
84
85Select a graph and splarkline mode.
86
87- **None -** Hides the graph and only shows the value.
88- **Area -** Shows the area graph below the value. This requires that your query returns a time column.
89
90### Text alignment
91
92Choose an alignment mode.
93
94- **Auto -** If only a single value is shown (no repeat), then the value is centered. If multiple series or rows are shown, then the value is left-aligned.
95- **Center -** Stat value is centered.
96
97## Text size
98
99Adjust the sizes of the gauge text.
100
101- **Title -** Enter a numeric value for the gauge title size.
102- **Value -** Enter a numeric value for the gauge value size.
103