Skip to content

Commit 180e811

Browse files
properly organize files + minor content tweaks
1 parent 08dbe4a commit 180e811

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

explore-analyze/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ toc:
189189
- file: visualize/manage-panels.md
190190
- file: visualize/lens.md
191191
children:
192-
- file: visualize/metric-charts.md
192+
- file: visualize/charts/metric-charts.md
193193
- file: visualize/esorql.md
194194
- file: visualize/custom-visualizations-with-vega.md
195195
- file: visualize/text-panels.md

explore-analyze/visualize/metric-charts.md renamed to explore-analyze/visualize/charts/metric-charts.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ description: Instructions and best practices for building metric charts with Kib
88

99
# Build metric charts with {{kib}}
1010

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.
1212

1313
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.
1414

1515
The best way to create metric charts in {{kib}} is with **Lens**.
1616

17-
![Metric chart representing an SLO](../images/metric-chart.png "=30%")
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+
![Metric chart representing an SLO](../../images/metric-chart.png "=30%")
2218

2319
## Build a metric chart
2420

@@ -52,7 +48,7 @@ Refer to [](#settings) to find all data configuration options for your metric ch
5248
::::{step} Customize the chart with best practices
5349
Tweak the appearance of the chart to your needs. Consider the following best practices:
5450

55-
**Use color wisely**
51+
**Use color wisely** {applies_to}`stack: preview 9.1, ga 9.3`
5652
: 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).
5753

5854
**Format for readability**
@@ -82,7 +78,7 @@ When creating **Metric** visualizations with numeric data, you can add trend ind
8278

8379
| Without trend | With trend |
8480
|--------|-------|
85-
| ![Secondary metric before comparison](../images/secondary_metric_before_compare.png "title =70%") | ![Secondary metric after comparison](../images/secondary_metric_after_compare.png "title =70%") |
81+
| ![Secondary metric before comparison](../../images/secondary_metric_before_compare.png "title =70%") | ![Secondary metric after comparison](../../images/secondary_metric_after_compare.png "title =70%") |
8682

8783
To add trend indicators to your metric visualization:
8884

@@ -129,7 +125,7 @@ Customize your metric chart to display exactly the information you need, formatt
129125
**Value**
130126
: 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.
131127

132-
:::{include} ../_snippets/lens-value-advanced-settings.md
128+
:::{include} ../../_snippets/lens-value-advanced-settings.md
133129
:::
134130

135131
**Appearance**
@@ -152,7 +148,7 @@ Customize your metric chart to display exactly the information you need, formatt
152148
* Different aggregations on the same data (for example, showing both average and median response times)
153149
* Related metrics for context (for example, showing total count alongside an average)
154150

155-
:::{include} ../_snippets/lens-value-advanced-settings.md
151+
:::{include} ../../_snippets/lens-value-advanced-settings.md
156152
:::
157153

158154
**Appearance**
@@ -168,7 +164,7 @@ Customize your metric chart to display exactly the information you need, formatt
168164
**Value**
169165
: 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.
170166

171-
:::{include} ../_snippets/lens-value-advanced-settings.md
167+
:::{include} ../../_snippets/lens-value-advanced-settings.md
172168
:::
173169

174170
**Appearance**
@@ -185,7 +181,7 @@ Customize your metric chart to display exactly the information you need, formatt
185181
- **Rank direction**: The direction to use for the ranking.
186182
- **Collapse by**: Aggregate values of the various tiles into a single number. Possible aggregation options are `None` (default), `Sum`, `Average`, `Min`, and `Max`.
187183

188-
:::{include} ../_snippets/lens-breakdown-advanced-settings.md
184+
:::{include} ../../_snippets/lens-breakdown-advanced-settings.md
189185
:::
190186

191187
**Appearance**
@@ -227,7 +223,7 @@ The following examples show various configuration options that you can use for b
227223
* **Color by value**: Green when above $250,000 target, red when below
228224
* **Supporting visualization:** "Line" to show revenue evolution throughout the quarter
229225

230-
![Metric with a total revenue below the target](../images/metric-total-revenue-example.png "=70%")
226+
![Metric with a total revenue below the target](../../images/metric-total-revenue-example.png "=70%")
231227

232228
**Website traffic with trend**
233229
: Monitor current traffic and show whether it's increasing or decreasing compared to the previous period:
@@ -242,7 +238,7 @@ The following examples show various configuration options that you can use for b
242238
* **Label**: "Compared to last week"
243239
* **Color palette**: Green for increases (more traffic is positive)
244240

245-
![Metric showing weekly visits with weekly comparison trend](../images/metric-website-views-weekly-trend-example.png "=70%")
241+
![Metric showing weekly visits with weekly comparison trend](../../images/metric-website-views-weekly-trend-example.png "=70%")
246242

247243
**Sales per day of the week**
248244
: Compare revenue across days of the week using breakdown:
@@ -255,4 +251,4 @@ The following examples show various configuration options that you can use for b
255251
* **Number of values**: `7`
256252
* **Layout columns**: `4`
257253

258-
![Metric showing revenue broken down per day of the week](../images/metric-revenue-breakdown-example.png "=70%")
254+
![Metric showing revenue broken down per day of the week](../../images/metric-revenue-breakdown-example.png "=70%")

0 commit comments

Comments
 (0)