Help Center/ DataArts Insight/ Getting Started/ Setting Up a Dashboard
Updated on 2025-02-25 GMT+08:00

Setting Up a Dashboard

Scenario

Dashboards, as powerful data analysis tools, are widely used in various fields such as operations monitoring, market analysis, and project management. They help management quickly grasp the business status and timely identify and resolve issues by displaying key indicators and data trends in real-time. This section guides you on how to connect DataArts Insight to a GaussDB(DWS) data source to set up dashboards for data analysis and visualization.

Procedure

Figure 1 Process of setting up a dashboard

Table 1 Process of setting up a dashboard

No.

Step

Description

1

Create a Project

Establish a project where all subsequent data analysis activities will occur, facilitating streamlined data management.

2

Connect to a Data Source

Data sources form the backbone of data analysis. Ensuring successful connections to data sources is essential before commencing any data analysis.

3

Create a Dataset

Datasets serve as an intermediary between data sources and the visual displays, receiving input from data sources and providing input for the visual displays.

4

Create a Dashboard

You can create a dashboard by adding various charts to display data from different dimensions and perform visual data analysis.

5

Manage Dashboards

After analyzing data, you can publish the dashboard or share it with others for collaborative editing.

Data Description

To protect user privacy and data security, all data has been sampled and anonymized. In this example, there are three data tables: order_info_demo_01 (order table), product_info_demo_02 (product information table), and user_info_demo_03 (user data table). For details, see Table 2.

Table 2 Product sales data example

Data Table

Field

Type

Description

order_info_demo_01

id

int

ID

sale_price

int

Sales price

profit

int

Profit

pay_time

int

Payment time

create_time

int

Order creation time

product_info_demo_02

product_id

int

ID

product_name

string

Product name

product_type

string

Product type

product_color

string

Product color

product_price

string

Product price

user_info_demo_03

id

int

ID

user_name

int

Username

age

int

Age

gender

int

Gender

Step 1: Create a Project

  1. Log in to the DataArts Insight console.
  2. Click in the upper left corner of the management console to select a region and select an enterprise project from Enterprise Project in the lower left corner of the Workspace page.
  3. Click Create Project in the right pane of the console.
  4. Enter the project name, visible type, members, and description. See Figure 2.
  5. Set the parameters and click OK.
    Figure 2 Creating a project

Step 2: Connect to a Data Source

In this example, a GaussDB(DWS) data source is connected through the public network..

  1. Select the desired project and click the name to access the project space.
  2. Choose Data Management > Data Sources. On the displayed page, click Create Data Source. In the slide-out panel, set Access Network Type to Public network. See Figure 3.
  3. Enter the name, domain name, port number, and database, and click Test Connection. For details about the parameters, see Table 3. Once the connection test is successful, the data source is successfully connected.
    Figure 3 Clicking Create Data Source

    Table 3 Parameters

    Parameter

    Mandatory

    Description

    Source Database Type

    Yes

    Type of the accessed data source. In this example, GaussDB(DWS) is selected.

    Access Network Type

    Yes

    In this example, Public network is selected.

    Name

    Yes

    Display name of the data source in the list.

    Domain Name

    Yes

    IP address of the data source.

    Port

    Yes

    Port number for logging in to the database.

    Database

    Yes

    Name of the database to be logged in to.

    SASL_SSL

    -

    It is used for trusted identity authentication and secure data transmission when DataArts Insight retrieves data from the data source. This function is enabled by default.

    Username

    Yes

    Username for logging in to the database.

    Password

    Yes

    Password for logging in to the database.

Step 3: Create a Dataset

  1. Select the desired project and click the name to access the project space.
  2. Click next to the data source name and select Uploaded Files (Figure 4). Select the Excel file you want to upload, modify parameters as required, and click OK. Repeat this step to upload all data tables in sequence. In this example, there are three data tables. For details about the data tables, see Data Description.
    Figure 4 Uploading a file

    Before uploading files, you need to configure the data storage bucket on the System Settings > OBS Bucket Settings page.

  3. Choose Data Management > Datasets. On the displayed page, click Create Dataset.
  4. Under My Data Sources, select the data source that is connected to in step 2. Click the Uploaded Files and double-click or drag a data table to add it to the operation panel.
    Figure 5 Selecting a data table

  5. Double-click the data table name and set the table's association in the operation panel.
    • Set up a left outer join between product_info_demo_02 and order_info_demo_01 using the id field as the key for the association.
    • Set up a left outer join between product_info_demo_02 and user_info_demo_03 using the id field as the key for the association.
    Figure 6 Creating a model by associating multiple tables
  6. Click the Visual Configuration tab and enter descriptions of the fields.
    Figure 7 Visual configuration
  7. Click the Data Preview tab and then Refresh Preview to view basic information about the dataset.
    Figure 8 Data Preview tab

  8. Confirm the information and click Save.

Step 4: Create a Dashboard

In this example, we will create an area chart, pie chart, and table on a dashboard.

  1. Click the name of the desired project in the My Projects area in the right pane.
  2. In the navigation pane on the left, choose Data Analytics > Dashboard. On the displayed page, click Create Dashboard.
  3. In the Data area on the right, select a dataset. Then drag a dimension and metric to the Column area of the intelligent chart.
    Figure 9 Selecting data

  4. Click Update. The system automatically generates a chart based on the selected data.
  5. Click in the upper right corner of intelligent chart, choose Switch chart type, and select the desired chart type. In this example, an area chart is selected.
    Figure 10 Switching the chart type

  6. On the top menu, click Add Chart and select the required chart template. The pie chart is used as an example.
  7. In the Data area on the right of the page, select a dataset. Then drag dimensions and metrics to the Column area.
  8. Click Update. The pie chart is created. Create a table by following the same procedure.
    Figure 11 Dashboard display

  9. Click Save in the upper right corner. In the dialog box that appears, enter a dashboard name, and click Confirm.

Step 5: Manage Dashboards

  • Changing the dashboard publish status
    1. Click the name of the desired project in the My Projects area in the right pane.
    2. In the navigation pane on the left, choose Data Analytics > Dashboard.
    3. Click the name of the desired dashboard.
      • Publishing the dashboard: Click Save and Publish in the upper right corner of the page.
      • Taking the dashboard offline: Click in the upper right corner of the page and select Offline.
        Figure 12 Changing the dashboard publish status

  • Managing a published dashboard
    You can edit, preview, view, share, and collaborate on published dashboards.
    1. Click the name of the desired project in the My Projects area in the right pane.
    2. In the navigation pane on the left, choose Data Analytics > Dashboard.
    3. On the displayed page, locate the dashboard you want to manage, and click Edit, Preview, Sharing and Collaboration, or Delete in its Operation column as needed.
      Figure 13 Managing a published dashboard

  • Managing a dashboard that has been taken offline
    You can edit, preview, share, collaborate on, and delete dashboards that have been taken offline.
    1. Click the name of the desired project in the My Projects area in the right pane.
    2. In the navigation pane on the left, choose Data Analytics > Dashboard.
    3. On the displayed page, locate the dashboard you want to manage, and click Edit, Preview, Sharing and Collaboration, or Delete in its Operation column as needed.
      Figure 14 Managing a dashboard that has been taken offline