Skip to content

Commit a074ef3

Browse files
committed
Draft page for Area charts
1 parent 5e8ab1a commit a074ef3

File tree

3 files changed

+98
-0
lines changed

3 files changed

+98
-0
lines changed
156 KB
Loading

explore-analyze/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ toc:
188188
- file: visualize/visualize-library.md
189189
- file: visualize/manage-panels.md
190190
- file: visualize/lens.md
191+
children:
192+
- file: visualize/area-chart.md
191193
- file: visualize/esorql.md
192194
- file: visualize/custom-visualizations-with-vega.md
193195
- file: visualize/text-panels.md
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
navigation_title: Area charts
3+
applies_to:
4+
stack: ga
5+
serverless: ga
6+
description: Instructions and best practices for building area charts with Kibana Lens in Elastic.
7+
---
8+
9+
# Build area charts with {{kib}}
10+
11+
An area chart is a type of visualization that displays trends over time with an emphasis on volume or magnitude. Area charts fill the space between the line and the x-axis, creating a colored "area" that visually emphasizes the volume of data.
12+
13+
The best way to create area charts in {{kib}} is with **Lens**.
14+
15+
![Area chart](../images/area-chart.png "=30%")
16+
17+
## When to use area charts
18+
19+
Area charts are particularly effective for showing trends over time when you want to emphasize volume. Use an area chart when you want to:
20+
21+
- Compare multiple related data series
22+
- Visualize parts of a whole changing over time (when stacked)
23+
- Highlight cumulative totals
24+
25+
## Build an area chart
26+
27+
To build an area chart:
28+
29+
:::::{stepper}
30+
31+
::::{step} Access Lens
32+
**Lens** is {{kib}}'s main visualization editor. You can access it:
33+
- By adding a new visualization to a dashboard. To do that, go to the **Dashboards** page and open or create the dashboard where you'd like to add a metric chart.
34+
- By creating a visualization from the **Visualize library** page.
35+
::::
36+
37+
::::{step} Set the visualization to Area
38+
New visualizations default to creating **Bar** charts.
39+
40+
From the dropdown on the right side, select **Area**.
41+
::::
42+
43+
::::{step} Define the data to show
44+
1. Select the {{data-source}} that contains your data.
45+
2. Select the area chart type: Standard, Stacked, or Percentage.
46+
3. Optionally add a breakdown for multiple areas.
47+
48+
Refer to [](#settings) to find all data configuration options for your area chart.
49+
::::
50+
51+
::::{step} Save the chart
52+
Save your visualization by selecting **Save and return** if you're adding it from a dashboard, or **Save to library** to use it later.
53+
::::
54+
55+
:::::
56+
57+
### Best practices
58+
59+
Tweak the appearance of the chart to your needs. Consider the following best practices:
60+
61+
**Use appropriate time intervals**
62+
: Adjust the time bucket size (hourly, daily, weekly) based on your data density.
63+
64+
**Limit the number of breakdowns**
65+
: Too many areas can make the chart hard to read.
66+
67+
**Consider using filters**
68+
: Pre-filter your data to focus on specific segments.
69+
70+
**Add annotations**
71+
: Mark important events on your timeline for context.
72+
73+
### Advanced configurations
74+
75+
TBD
76+
77+
## Area chart settings [settings]
78+
79+
Customize your area chart to display exactly the information you need, formatted the way you want.
80+
81+
## Area chart example
82+
83+
The following example show various configuration options that you can use for building impactful area charts.
84+
85+
### E-commerce Revenue Over Time by Category
86+
87+
This example shows you how to create an area chart displaying how much revenue each product category generates daily, with areas stacked to show both individual category performance and total revenue.
88+
89+
- X-axis: `order_date` with "Daily" interval
90+
- Y-axis: `taxful_total_price` with "Sum" aggregation
91+
- Breakdown: `category.keyword`
92+
- Chart type: Stacked area
93+
- Title: "Daily Revenue by Product Category"
94+
95+
[ADD SCREENSHOT]
96+

0 commit comments

Comments
 (0)