Updated on 2025-03-24 GMT+08:00

Trend

Trend is a type of text widget used to display the trend of data changes.

On the large screen design page, drag the trend widget from All > Text to the blank area of the canvas, as shown in Figure 1.

Figure 1 Trend
Figure 2 Margin style

Card

A card wraps a chart widget. A widget consists of card elements (card title, chart, card background, and card border) and chart elements.

Figure 3 Trend card
  • Card style: You can select a card style based on your service requirements. You can click the clear style button to clear the configured style.
  • Background
    • Background color: Background color of the widget card.
    • Border: Border of the widget card. Options: no border, full border, and corner border. For full border and corner border, you can set the line type and rounded corners of the outer border of the widget.
    • Style: Image display style. The options are normal, center, stretch, and tiled.
    • Choose image: Use a local image as the widget background. Directories and subdirectories can be added to facilitate image management by category. JPG, JPEG, PNG, or GIF images are recommended. The size of each image cannot exceed 50 MB.
  • Special effect: Widget highlighted status. Displayed by default or on page load.
  • Padding: Distance between the chart and the four sides (top, bottom, left, and right as shown in Figure 2) of the widget. The default value is 0, indicating that the chart stretches to fill the entire widget.
  • Title: Whether to display the title. If you set it to display, set the following attributes:
    • Title content: Content of the title.
    • Title font: Font, color, and size of the title.
  • Inner margin: Inner margin between the chart and the widget border, in pixels.

Configuration

On the configuration page, you can set the alignment mode, value, trend number, and icon of the trend.

Figure 4 Trend configuration
  • To set the alignment mode of widgets to left, center, or right alignment, you can click the unified configuration button and then click the alignment mode button.
  • Numeric value: Whether to display the chart value. If you set it to display, set the following attributes:
    • Number font: Font, color, and size of the widget number.
    • Text spacing: Spacing between numbers in the widget.
    • Numeric quantifier: Whether to display numeric quantifiers. If you set it to display, set the following attributes:
      • Thousand comma: Whether to use the thousand comma for the value.
      • Keep decimal: Whether to display a specified number of decimal places for the value.
      • Rounding: whether to use rounding.
      • Dynamic quantifiers: Whether to use dynamic quantifiers.
      • Quantifier type: Set the quantifier type. Auto and custom quantifier are supported. Required only when dynamic quantifiers are used.
      • Quantifier selection: Select the required quantifier, such as %, 10,000, million, and 100 million.
    • Prefix: Whether to display the prefix. If you set it to display, set the following attributes:
      • Prefix content: Enter the prefix content.
      • Prefix font: Font, size, and color of the prefix.
      • Right spacing: Spacing between the prefix and the value.
    • Suffix: Whether to display the suffix. If you set it to display, set the following attributes:
      • Suffix content: Enter the suffix content.
      • Suffix font: Font, size, and color of the suffix.
      • Left spacing: Spacing between the suffix and the value.
  • Trend number: Whether to display the trend number. If you set it to display, set the following attributes:
    • Upward number font: Font, size, and color of upward numbers.
    • Flat trend number font: Font, size, and color of flat trend numbers.
    • Downward number font: Font, size, and color of downward numbers.
    • Trend location: Location of the trend relative to the number.
    • Prefix: Whether to display the prefix. If you set it to display, set the following attributes:
      • Prefix content: Enter the prefix content.
      • Prefix font: Font, size, and color of the prefix.
      • Right spacing: Spacing between the prefix and the trend number.
    • Suffix: Whether to display the suffix. If you set it to display, set the following attributes:
      • Suffix content: Enter the suffix content.
      • Suffix font: Font, size, and color of the suffix.
      • Left spacing: Spacing between the suffix and the trend number.
  • Trend icon: Whether to display the trend icon. If you set it to display, set the following attributes:
    • Trend icon: Default trend icon and custom trend icon can be used.
    • Growth trend style: Style of the growth trend icon. Displayed only when the trend icon is set as a custom one.
    • Decreasing trend style: Style of the decreasing trend icon. Displayed only when the trend icon is set as a custom one.
    • Flat trend style: Style of the flat trend icon. Displayed only when the trend icon is set as a custom one.
    • Icon width: Width of the icon. Displayed only when the trend icon is set as a custom one.
    • Icon height: Height of the icon. Displayed only when the trend icon is set as a custom one.
    • Icon size: Size of the icon. Displayed only when the trend icon is set as a default one.
    • Icon position: Position of the icon, for example, right or left.
    • Upward trend icon color: Color of the upward trend icon. Displayed only when the trend icon is set as a default one.
    • Flat trend icon color: Color of the flat trend icon. Displayed only when the trend icon is set as a default one.
    • Downward trend icon color: Color of the downward trend icon. Displayed only when the trend icon is set as a default one.

Data

In the data settings, you can set the data source of the trend widget. For more information, see Data Access.

Interaction

In the interaction settings, you can configure interactions between the trend widget and other widgets or pages. For details, see Interaction Configuration.