---
layout: default
title: Dashboard tutorial
parent: Creating dashboards
nav_order: 5
has_children: false
---
# Tutorial: Creating a dashboard
You can use the **Dashboards** application in OpenSearch Dashboards to build a page containing multiple visual representations of your data.
Use the following tutorial to learn to create a dashboard using the **Dashboards** application and the OpenSearch sample data. The sample datasets have existing sample visualizations that you can use for the dashboard, or you can create your own visualizations. The tutorials demonstrate how to do both.
For an overview of the Dashboards UI, see [Navigating the Dashboards application UI]({{site.url}}{{site.baseurl}}/dashboards/dashboard/#navigating-the-dashboards-application-ui).
## Prerequisites
The tutorials on this page use the [**Sample eCommerce data**](https://playground.opensearch.org/app/home#/tutorial_directory) dataset that is already installed in [OpenSearch Playground](https://playground.opensearch.org/app/home#/).
If you're using a local installation of OpenSearch Dashboards and haven't added sample data yet, see [Prepare your data]({{site.url}}{{site.baseurl}}/dashboards/getting-started/data-setup/#add-sample-data).
The following tutorials assume you're either using your existing installation of OpenSearch Dashboards or using the [OpenSearch Playground](https://playground.opensearch.org/app/home#/). Depending on which one you use, certain capabilities may not be available. For example, sample datasets may not be included in your existing installation, and saving a dashboard isn't an option in the OpenSearch Playground.
{: .note}
## Creating a dashboard
To create a new dashboard, follow these steps:
1. | In classic navigation | In workspaces navigation |
| :-- | :-- |
| - Select **OpenSearch Dashboards** > **Dashboards**.
- Select **Dashboards**. | Select **Dashboards**. |
1. | In classic navigation | In workspaces navigation |
| :-- | :-- |
| - In the Dashboards panel, select **Create**.
- From the drop-down, select **Dashboard**. | From the application menu, select **Create Dashboard**. |
## Adding an existing visualization
To add a saved visualization to the dashboard, follow these steps:
1. From the application panel, choose **Add an existing**.
1. In the **Add panels** dialog, type `ecommerce` in the **Search** box to filter the list of available visualizations.
1. From the **Add panels** dialog, choose **[eCommerce] Sales by Category**.
1. Choose the {::nomarkdown}
{:/} (cross) icon to close the dialog.
1. Use the [time filter]({{site.url}}{{site.baseurl}}/dashboards/discover/time-filter/) to select `Last 2 years` as the time window as shown in the following image.
{: width="40%" }
1. Drag-select the narrow band of data from the area chart as shown in the following image.
{: width="60%" }
The data adjusts to span the width of the data display and the scale adjusts automatically, as shown in the following image.
{: width="60%" }
Selecting a date range interactively results in an absolute time interval.
{: .note}
You've created a dashboard with a single panel, which you'll continue to modify in this tutorial. Save the dashboard as described in the following section.
## Saving a dashboard
To save a new dashboard, follow these steps:
1. In the **Dashboards** toolbar, choose **Save**.
1. In the **Save dashboard** dialog, enter `[Ecommerce] tutorial dashboard` in the **Title** box.
1. Save the time filter with the dashboard by selecting **Store time with dashboard**.
1. Choose **Save**.
1. Choose **Edit** from the application menu to continue editing the dashboard.
## Creating a visualization
To create a new visualization in **Dashboards**, follow these steps:
1. From the application toolbar, choose **Create new**.
1. From the **New Visualization** window, choose **Metric**.
1. In the **New Metric/Choose a source** dialog, select the index pattern **opensearch_dashboards_sample_data_ecommerce**.
1. From the toolbar, choose **Save**.
1. In the **Save visualization** dialog, enter a title for the visualization. For this tutorial, enter `[eCommerce] Order Count`.
1. Choose **Save and return**.
The **Dashboards** application saves the metric visualization and adds it to the dashboard as shown in the following image.

## Adding subsequent panels
Add a Markdown visualization to the dashboard. Follow these steps:
1. From the dashboard toolbar, choose **Add**.
1. From the **Add panels** dialog, choose **[eCommerce] Markdown**.
1. Choose the {::nomarkdown}
{:/} (cross) icon to close the dialog.
The **Dashboards** application adds the Markdown panel to the dashboard as shown in the following image.

## Organizing a dashboard
You can organize a dashboard by resizing and rearranging panels. Move and resize the Markdown panel to serve as a title and description for the dashboard. Follow these steps:
1. Select and hold the top of the panel anywhere to the left of the {::nomarkdown}
{:/} (options) icon.
1. Drag the panel to the top of the application panel.
The Sales by Category panel automatically swaps places with the Markdown panel as you move it up.
1. Select and hold the {::nomarkdown}
{:/} (resize) icon in the panel's lower-right corner.
1. Drag to make the panel longer and narrower so that it serves as a banner across the entire upper part of the dashboard.
The metric panel automatically moves down to allow room for the resized Markdown panel.
The resulting dashboard should look like the following image.

1. Save your dashboard. See [Saving a dashboard](#saving-a-dashboard).