Add a Yida data source

更新时间:
复制 MD 格式

Yida is a low-code application development platform from Alibaba. You can use it to quickly build data applications by dragging and dropping elements. This topic describes how to add and use a Yida data source in DataV and explains the parameter settings.

Prerequisites

You have logged on to the Yida console through DingTalk and created a data form for a Yida application. For more information, see Create a Yida data form.

Background information

Permissions for calling data from a Yida data source follow the principle of least privilege. When you call a data source in DataV, an account can only call form data from applications that the same account built in Yida. The account cannot call form data created by other accounts.

Add a Yida data source

  1. Log on to the DataV console.

  2. On the My Data tab, select Data Source Management and click Add Data.

  3. In the Add Data Source dialog box, set Type to Yida Data Source.
  4. Enter the information for the Yida data source.
    Parameter Description
    Custom Data Source Name (Required) The display name of the data source.
    Application Code (Required) The code of the application for which you have created a form in the Yida platform.

    In the Application Settings of a Yida application, obtain the application code from the Application Data tab, as shown in the following figure.

    应用编码
    Application Key (Required) The key of the application for which you have created a form in the Yida platform.

    In the Application Settings of the Yida application, obtain the application key from the Application Data tab, as shown in the following figure.

    应用密钥
    Form ID (Optional) The ID of the form that you have created in the Yida platform. After you enter the Application Code, you can select the corresponding form from the list.
  5. After you enter the information, click OK.
    The new data source is automatically added to the data source list.

Use a Yida data source

This section describes how to connect a widget to a Yida data source.

  1. Log on to the DataV console.

  2. On the My Visualization page, hover the pointer over the visualization application that you want to edit, and then click Edit.

    Important

    If you do not have any visualization applications on the My Visualization page, create one. For more information, see Create a PC visualization application using a template.

  3. On the canvas editor page, click a widget on the canvas.

    If the canvas does not have any widgets, add one. For more information, see Add an asset.

  4. In the configuration panel for the widget on the right, click the Data tab, and then click Configure Data Source.

  5. On the Set Data Source page, set Data Source Type to Yida Data Source.
  6. From the Select Existing Data Source list, select a configured Yida data source.
  7. Click Configure below to open the Chart Data Configuration dialog box.
  8. In the Dataset list in the upper-left corner of the dialog box, select a dataset. The fields in the selected dataset are automatically displayed in the Fields list below.
    选择数据集
  9. Drag a data field to a mapping field in the Field Mapping section on the right.
    拖动字段数据映射字段内容
  10. Click the 配置数据缩略图标 icon next to the mapping field to configure the aggregation method for the data field. The default method is Sum.
    聚合方式选择
  11. Optional:Click the 配置数据缩略图标 icon next to the mapping field and select Add to Sort Conditions. The field is added to the Sorting list. You can set the sort order to Descending (default) or Ascending.
    排序
  12. After you configure the data mapping, a real-time preview of the chart appears in the Chart Preview area on the right.
  13. Click OK in the lower-right corner of the dialog box to complete the data mapping configuration.
  14. After the configuration is complete, you can view the data response in the data configuration pane of the widget.