forked from opensearch-project/documentation-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOC] Adds new site pages and content under Visualize (opensearch-pro…
…ject#2377) * Adds new doc site pages and new content Signed-off-by: vagimeli <vagimeli@amazon.com>
- Loading branch information
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
layout: default | ||
title: Using area charts | ||
parent: Visualization types | ||
grand_parent: Visualize | ||
nav_order: 5 | ||
--- | ||
|
||
# Using area charts | ||
|
||
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. | ||
|
||
 | ||
|
||
# Try it: Create a simple aggregation-based area chart | ||
|
||
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. | ||
|
||
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. | ||
|
||
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_. | ||
{: .note} | ||
|
||
## Set up the area chart | ||
|
||
1. Access Dashboards by connecting to [http://localhost:5601](http://localhost:5601) from a browser. | ||
1. Select **Visualize** from the menu and then select **Create visualization**. | ||
1. Select **Area** from the window. | ||
1. Select **opensearch_dashboards_sample_data_flights** in the **New Area/Choose a source** window. | ||
1. Select the calendar icon and set the time filter to **Last 7 days**. | ||
1. Select **Update**. | ||
|
||
## Add aggregations to the area chart | ||
|
||
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: | ||
|
||
1. Add a **Metrics** aggregation. | ||
1. Under **Metrics**, select the **Aggregation** dropdown list and choose **Average** and then select the **Field** dropdown list and choose **FlightDelayMin**. | ||
1. Under **Metrics**, select **Add** to add another Y-axis aggregation. | ||
1. Select the **Aggregation** dropdown list and choose **Max** and then select the **Field** dropdown list and choose **FlightDelayMin**. | ||
1. Add a **Buckets** aggregation. | ||
1. Select **Add** to open the **Add Bucket** window and then select **X-axis**. | ||
2. From the **Aggregation** dropdown list, select **Date Histogram**. | ||
3. From the **Field** dropdown list, select **timestamp**. | ||
4. Select **Update**. | ||
2. Add a sub-aggregation. | ||
1. Select **Add** to open the **Add Sub-Buckets** window and then select **Split series**. | ||
2. From the **Sub aggregation** dropdown list, select **Terms**. | ||
3. From the **Field** dropdown list, select **FlightDelay**. | ||
4. Select **Update** to reflect these parameters in the graph. | ||
|
||
You've now created the following aggregation-based area chart. | ||
|
||
 | ||
|
||
# Related links | ||
|
||
- [Visualize]({{site.url}}{{site.baseurl}}/dashboards/visualize/viz-index/) | ||
- [Visualization types in OpenSearch Dashboards]({{site.url}}{{site.baseurl}}/dashboards/visualize/viz-types/) | ||
- [Install and configure OpenSearch Dashboards]({{site.url}}{{site.baseurl}}/install-and-configure/install-dashboards/index/) | ||
- [Aggregations]({{site.url}}{{site.baseurl}}/opensearch/aggregations/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
layout: default | ||
title: Visualization types | ||
parent: Visualize | ||
has_children: true | ||
--- | ||
|
||
# Visualization types in OpenSearch Dashboards | ||
|
||
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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.