Skip to content

Commit 243ec11

Browse files
authoredJan 11, 2023
[DOC] Adds new site pages and content under Visualize (opensearch-project#2377)
* Adds new doc site pages and new content Signed-off-by: vagimeli <vagimeli@amazon.com>
1 parent 851c523 commit 243ec11

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed
 

‎_dashboards/visualize/area.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
layout: default
3+
title: Using area charts
4+
parent: Visualization types
5+
grand_parent: Visualize
6+
nav_order: 5
7+
---
8+
9+
# Using area charts
10+
11+
An area chart is a line chart with the area between the line and the axis shaded with a color, and is a primary visualization type used to display time series data. You can create area charts in Dashboards using the Area visualization type or using the Time Series Visual Builder (TSVB), Vega, or VisBuilder visualization tools. For this tutorial, you'll use the Area visualization type.
12+
13+
![Demonstration of the area chart tutorial steps]({{site.url}}{{site.baseurl}}/images/area-tutorial.gif)
14+
15+
# Try it: Create a simple aggregation-based area chart
16+
17+
In this tutorial you'll create a simple area chart using sample data and aggregations in OpenSearch Dashboards by connecting to [http://localhost:5601](http://localhost:5601) from a browser.
18+
19+
You have several aggregation options in Dashboards, and the choice influences your analysis. The use cases for aggregations vary from analyzing data in real time to using Dashboards to create a visualization dashboard. If you need an overview of aggregations in OpenSearch, see [Aggregations]({{site.url}}{{site.baseurl}}/opensearch/aggregations/) before starting this tutorial.
20+
21+
Make sure you have [installed the latest version of Dashboards](https://opensearch.org/docs/latest/install-and-configure/install-dashboards/index/) and added the sample data before continuing with this tutorial. _This tutorial uses Dashboards version 2.4.1_.
22+
{: .note}
23+
24+
## Set up the area chart
25+
26+
1. Access Dashboards by connecting to [http://localhost:5601](http://localhost:5601) from a browser.
27+
1. Select **Visualize** from the menu and then select **Create visualization**.
28+
1. Select **Area** from the window.
29+
1. Select **opensearch_dashboards_sample_data_flights** in the **New Area/Choose a source** window.
30+
1. Select the calendar icon and set the time filter to **Last 7 days**.
31+
1. Select **Update**.
32+
33+
## Add aggregations to the area chart
34+
35+
Continuing with the area chart created in the preceding steps, you'll create a visualization that displays the top five logs for flights delayed for every three hours over the last seven days:
36+
37+
1. Add a **Metrics** aggregation.
38+
1. Under **Metrics**, select the **Aggregation** dropdown list and choose **Average** and then select the **Field** dropdown list and choose **FlightDelayMin**.
39+
1. Under **Metrics**, select **Add** to add another Y-axis aggregation.
40+
1. Select the **Aggregation** dropdown list and choose **Max** and then select the **Field** dropdown list and choose **FlightDelayMin**.
41+
1. Add a **Buckets** aggregation.
42+
1. Select **Add** to open the **Add Bucket** window and then select **X-axis**.
43+
2. From the **Aggregation** dropdown list, select **Date Histogram**.
44+
3. From the **Field** dropdown list, select **timestamp**.
45+
4. Select **Update**.
46+
2. Add a sub-aggregation.
47+
1. Select **Add** to open the **Add Sub-Buckets** window and then select **Split series**.
48+
2. From the **Sub aggregation** dropdown list, select **Terms**.
49+
3. From the **Field** dropdown list, select **FlightDelay**.
50+
4. Select **Update** to reflect these parameters in the graph.
51+
52+
You've now created the following aggregation-based area chart.
53+
54+
![Resulting aggregation-based area chart]({{site.url}}{{site.baseurl}}/images/area-aggregation-tutorial.png)
55+
56+
# Related links
57+
58+
- [Visualize]({{site.url}}{{site.baseurl}}/dashboards/visualize/viz-index/)
59+
- [Visualization types in OpenSearch Dashboards]({{site.url}}{{site.baseurl}}/dashboards/visualize/viz-types/)
60+
- [Install and configure OpenSearch Dashboards]({{site.url}}{{site.baseurl}}/install-and-configure/install-dashboards/index/)
61+
- [Aggregations]({{site.url}}{{site.baseurl}}/opensearch/aggregations/)

‎_dashboards/visualize/viz-types.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: default
3+
title: Visualization types
4+
parent: Visualize
5+
has_children: true
6+
---
7+
8+
# Visualization types in OpenSearch Dashboards
9+
10+
OpenSearch Dashboards offers a range of visualization types and tools that you can use to display your data. Use the topics in this section to learn more about the capabilities of each visualization type or tool.

‎images/area-aggregation-tutorial.png

153 KB
Loading

‎images/area-tutorial.gif

13.5 MB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.