This topic describes how to configure a data source for an asset in DataV and the Configure Data Source page, including the data source, data filter, and data response results.

Configure a data source

  1. Log on to the DataV console.
  2. On the Projects page, click Edit above the project that you created.
  3. In Canvas Editor, click an asset in the Layer column or on the canvas.
    Notice Before searching for asset configurations, make sure that the corresponding assets have been added to your visualization application project. Otherwise, you need to add the assets first. For more information, see Add a widget.
  4. On the right of the canvas editor, click the Data icon.
  5. On the Data tab, click Set.
    Set Data Source
  6. In the Set Data Source pane, modify the data source type and script, configure a data filter, and preview the data response.

Modify the data source type and script

  1. In the Set Data Source pane, select a data source type from the Data Source Type list.
    For more information about the supported data source types and configurations, see Manage data sources.
    Note If you use an API data source, you can configure cross-origin access and obtain cookies of user clients. For more information, see Cross-origin data configuration and Use cookies to isolate data of a DataV project.
  2. In the editing box, modify the data source script.
    In the lower-right corner of the editing box, click the Toggle Full Screen View icon to edit the data source script in full screen. Click the Copy icon to copy the data source script.
  3. After you configure the script, click Preview Data Response to preview the response result.
    Edit a data source

Configure a data filter

Data filters allow you to convert the data structure, filter data, and perform simple calculations.

  1. In the Set Data Source pane, select Data Filter to enable the data filter function.
    Configure a data filter
  2. Click the plus sign (+) on the right to add a data filter.
  3. In the filter code editor, enter the filter code of the current asset data.
  4. Click Test to view the filter result.
    For more information about data filters, see Data filters.

View fields in the data response result

Data response results of DataV assets are generally in the form of lists. The data response result list displays the fields, mappings, and description of the fields of the asset. Fields in the data response result

View the data response result

In the Set Data Source pane, view the data response result in the Data Response Result section.

Data Response Result displays the data used by the asset in real time. When the asset data source changes, the data response results show the latest data. If the system response is delayed, you can click the Refresh icon on the right to obtain the latest data of the asset.

In the lower-right corner of the data editing box, click the Toggle Full Screen View icon to view the data response result in full screen. Click the Copy icon to copy the data response result. Data Response Result