Configuring Widgets


A widget is the smallest configurable unit in DTV pages. Widgets present and analyze data in various ways and represent different business metrics. Widgets are categorized into two types—charts and containers—based on their functions and purposes. For more information, see DTV Key Concepts.


After configuring the canvas, layers, and panels, you can start designing the widgets following the guide below.

General Widget Operations

Adding a Widget

You can add widgets to a panel in two ways:

  • Drag a widget from the Widget Library onto the panel and configure it from scratch.

  • Import ready widgets from existing pages. You can find the Import Widgets from Dashboard button in the layer configuration drawer. Be noted that all widgets on the dashboard and their configuration will be added to the current panel if you use Import Widgets from Dashboard, replacing what is currently on the panel.

spa

Checking Widget Position

You can check a widget’s position on the page or a chart’s position in the container by moving the cursor to the position icon on the top left corner of the widget.

spa


Widget Position in Page

DTV uses the upper left corner of the canvas as the origin of the coordinate system. The position of a widget is defined by the location of its own top-left corner.

  • Vertical axis: extends downward in units based on the configured grid height.

  • Horizontal axis: extends rightward in units based on the configured grid number.

    spa


Chart Position in Container

The upper left corner of the container is the origin of the coordinate system. The position of a chart in a container is defined by the location of the char’s top-left corner.

  • Vertical axis: extends downward in units based on the configured grid height.

  • Horizontal axis: extends rightward in units based on the configured grid number.

    dashboard

Moving a Widget

You can select the widgets to reposition them in the panel. To resize a widget, drag the double-sided arrow icon that appears when your cursor is on its lower-right corner.

If you need to move a widget from one panel to another, hover over the (…) icon on the widget and select Move to Another Panel.

spa

Deleting a Widget

To delete a widget, hover over the (…) icon on the widget and select Delete.

Note

  • If you delete a container, all charts in the container will be deleted.

  • Deleting a widget will erase its relevant linkages.

Saving as Template

Following the steps below, you can save a widget that you have designed and configured as a template for future use.

  1. Move the cursor to the widget and hover over the (…) icon.

  2. Select Save as Template from the dropdown menu, and assign its Belonged Group, Folder Name, Template Name, and Tag in the popup window.

  3. Select OK to save the template.

Container-Chart Interactions

Adding Charts into Containers

Containers are used to host and manage charts. After adding a container to a panel, you can follow the steps below to place a chart into the container.

  1. Move the cursor to the chart.

  2. Select Add to Container.

  3. Select a container and a tab (if the container has multiple tabs).

Removing Charts from Containers

You can follow the steps below to remove a chart from a container.

  1. Move the cursor to the chart.

  2. Select Remove from Container.

The removed chart will be taken out of the container and placed in the same panel.


SPA


Widget Configuration

Editing Containers

To enter the container settings popup, hover over the container and select Edit. See Grouping Widgets Using Containers for instructions on how to configure containers.

spa

Editing Charts

Common Configurations

Select Edit on a chart to enter its configuration drawer. See Common Configurations for Widgets for instructions on how to configure charts.

spa


Duplicate Charts

Follow the steps below to duplicate a chart that you have already configured on the current page.

  1. Move the cursor to the chart and hover over the (…) icon.

  2. Select Duplicate from the dropdown menu

The duplicate will be placed in the same panel. If you intend to use it in another panel, hover over the (…) icon on the chart and select Move to Another Panel.

spa

Adding Linkage Between Widget and Navigator

You can configure the interaction between a widget and a navigator on the Canvas Configuration page. By setting up the linkage between widgets and navigators, when a user selects a filter option in the navigator, the widget dynamically updates its data based on the parameter values passed from the navigator. Follow these steps to configure the interaction:

  1. Enter a widget’s configuration panel and go to the Filter tab.

  2. In the Linkage Between Widget and Navigator section, select Data Linkage to expand the configuration options.

  3. select Click to add linkage to open the linkage configuration popup.

  4. In the popup, select the navigator parameter and the target widget field to establish the linkage:

    • Parameter from Navigator: Select the parameter from the navigator that you have added in the Navigation Configuration step.

    • Linked Data Field: Choose data fields from the data source used by the widget, including:

      • Parameter from Data Source: Request parameters sent by the widget to the data source.

      • Data Field: Response parameters returned by the data source.

    • Condition: The condition that must be met between Parameter from Navigator and Linked Data Field to trigger interaction.

  5. Select OK to save the linkage configuration.


You can also configure the linkage in the Linkage Configuration page. For more information, see Configuring Linkages.

Adding Linkage Between Widget and Widget

Widgets such as table, pie chart, and series chart can be linked to each other to achieve interactive data updates. When a user selects a data point in one widget, the linked widgets will update their data based on the selected data point.

Follow the steps below to configure the linkage between widgets:

  1. Enter the configuration panel of a widget and go to the Filter tab.

  2. In the Link Other Widgets section, select +Add to open the Add Widget Link drawer.

  3. Select Trigger in This Widget to choose the actions in the current widget that trigger the data update in the linked widgets.

  4. Select Refreshed Widgets to choose the widgets that need to be updated when the trigger action occurs.

  5. Select OK to save the linkage configuration.



After completing widget configuration, you can move on to Linkage Configuration to establish linkage between the navigator, canvas, and widgets.