You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: explore-analyze/visualize/charts/metric-charts.md
+11-15Lines changed: 11 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,13 @@ description: Instructions and best practices for building metric charts with Kib
8
8
9
9
# Build metric charts with {{kib}}
10
10
11
-
Metric charts make important single values stand out on a dashboard. They're perfect for highlighting KPIs like total sales, active users, or error rates.
11
+
Metric charts make important single values stand out on a dashboard. They're perfect for highlighting KPIs such as error rates or SLOs for example, and for making them understandable at a glance with dynamic coloring or trend indicators.
12
12
13
13
They work with any numeric data: plain numbers, percentages, or calculations like a count, sum, or average. You can get this numeric data from numeric fields stored in your {{es}} documents, or from aggregation functions and formulas that you can apply to any type of field.
14
14
15
15
The best way to create metric charts in {{kib}} is with **Lens**.
16
16
17
-

18
-
19
-
## When to use metric charts
20
-
21
-
Metric charts are the best visualization when you need to show a single, important value and make it visible.
17
+

22
18
23
19
## Build a metric chart
24
20
@@ -52,7 +48,7 @@ Refer to [](#settings) to find all data configuration options for your metric ch
52
48
::::{step} Customize the chart with best practices
53
49
Tweak the appearance of the chart to your needs. Consider the following best practices:
54
50
55
-
**Use color wisely**
51
+
**Use color wisely** {applies_to}`stack: preview 9.1, ga 9.3`
56
52
: Assign colors that match your users' expectations. Red typically means problems, yellow means caution, and green means good. But consider your specific context: for costs, lower might be better (green), while for revenue, higher is better (green).
57
53
58
54
**Format for readability**
@@ -82,7 +78,7 @@ When creating **Metric** visualizations with numeric data, you can add trend ind
82
78
83
79
| Without trend | With trend |
84
80
|--------|-------|
85
-
|||
81
+
|||
86
82
87
83
To add trend indicators to your metric visualization:
88
84
@@ -129,7 +125,7 @@ Customize your metric chart to display exactly the information you need, formatt
129
125
**Value**
130
126
: The main numeric value that appears prominently in your chart. When you drag a field onto the chart, {{kib}} suggests a function based on the field type. You can change it and use aggregation functions like `Sum`, `Average`, `Count`, `Median`, and more, or create custom calculations with formulas. Refer to [](/explore-analyze/visualize/lens.md#lens-formulas) for examples, or to the {icon}`documentation`**Formula reference** available from Lens.
@@ -168,7 +164,7 @@ Customize your metric chart to display exactly the information you need, formatt
168
164
**Value**
169
165
: An optional reference value that defines the upper bound for your metric. When you specify a maximum, you can show a progress bar by setting the primary metric's **Supporting visualization** option to **Bar**. This is useful for showing progress toward goals or capacity limits.
@@ -185,7 +181,7 @@ Customize your metric chart to display exactly the information you need, formatt
185
181
- **Rank direction**: The direction to use for the ranking.
186
182
- **Collapse by**: Aggregate values of the various tiles into a single number. Possible aggregation options are `None` (default), `Sum`, `Average`, `Min`, and `Max`.
0 commit comments