Build a visualization application from a template

更新时间:
复制 MD 格式

Use a DataV template to build a Double 11 Shopping Festival visualization application.

Background information

  • This example uses a Static Data Source, so you can paste prepared data directly in the widget data configuration area. For CSV File, Database, or other source types, add a data source first.

  • For an API data source, enter the API address in the data configuration bar. To enable Server Proxy Request, follow Configure cross-domain data.

Expected result

image

Workflow

Complete the following steps to build a visualization application from a template.

  1. Step 1: Create a visualization application

  2. Step 2: Configure widget styles

  3. Step 3: Adapt widget data

  4. Step 4: Preview and publish the application

Step 1: Create a visualization application

  1. Log on to the DataV console.

  2. On the Projects page, click PC Creation and select a template. This example uses 2017 Double 11 Shopping Festival. Click Create Project.

  3. In the Create Project dialog box, enter the application name and select a project group. If no group exists, select Ungrouped.

  4. Click Create.

    After creation, the canvas editor opens with a pre-designed template for enterprise new retail business data.image

Step 2: Configure widget styles

Modify widget styles using the following methods.

  1. Select a widget in the Layers panel on the left, then adjust its style in the panel on the right.image

    Note

    Double-click a widget name in the canvas editor to rename it.

  2. Repeat for other widgets as needed.

Step 3: Adapt widget data

Modify widget data using the following methods.

  1. In the Layers panel, select a widget, such as the Double 11 bubble chart.

  2. Click the Data tab in the right panel and click Configure Data Source. In the Data Source dialog box, set Data Source Type to Static Data.

  3. Edit the template data in the configuration area, or paste your own JSON data.

    Note

    Field names must match the system settings.

  4. Click the Refresh icon next to Data Response Result on the Set Data Source page to refresh the result.

    If the response succeeds, the Data page displays Configuration Complete and Matched Successfully.

  5. Repeat for all widgets in the application.

Step 4: Preview and publish the application

After configuring widget styles and data sources, preview and publish the application.

  1. Click the {FA4AF138-6B6B-4DF3-AA90-521D2359AFB3} icon in the upper-right corner of the canvas editor to preview the application.

    After previewing, publish the application by following these steps.

  2. Click the {F18FCB2F-9D3E-4A35-9995-D9A7EFEA0EF6} icon in the upper-right corner of the canvas editor, then click Publish Project in the dialog box.

  3. On the publish page, click the image.png icon next to Sharing URL to copy the link.

    Note

    The publish page also supports publication information and snapshot management.

  4. Open the URL in a browser to view the published application.