All Products
Search
Document Center

DataV:Digital Flip

Last Updated:May 12, 2023

This topic describes the meaning of each configuration items of the ticker board.

Chart Style

A ticker board is a type of text widget. It supports custom ticker board titles, numbers, prefixes, and suffixes. It is usually used in conjunction with other widgets to display real-time data changes in visualization applications by using the interactive feature. image..png

Settings Panel

image..png
  • Search for Configurations: In the right-side panel of Canvas Editor, click the Settings tab, and click Search for Configurations in the upper-right corner. Enter the required configuration item in the search box, and click the search icon to quickly locate the configuration item. Fuzzy match is supported. For more information, see Search for asset configurations.
  • Size: indicates the size of a widget, including its pixel width and height. You can click the Proportional resizing icon to proportionally adjust the width and height of a widget. After you click this icon again, you can adjust the width and height as needed.
  • Position: the position of a widget, which is indicated by pixel X and Y coordinates. X-coordinate indicates the pixel distance between the upper-left corner of the widget and the left border of the canvas. Y-coordinate indicates the pixel distance between the upper-left corner of the widget and the upper border of the canvas.
  • Rotation Angle: the angle of a rotation that uses the center point of a widget as the rotation point. The unit is degrees (°). You can use one of the following methods to control the rotation angle of a widget:
    • Directly enter the degrees in the Rotation Angle spin box or click the plus sign (+) or minus sign (-) to increase or decrease the value in the Rotation Angle spin box.
    • Drag the black dot in the Rotation control icon icon.
    • Click the Horizontal flip icon to horizontally flip a widget.
    • Click the Vertical flip icon to vertically flip a widget.
  • Opacity: the opacity of a widget. Valid values: 0 and 1. If this parameter is set to 0, the widget is hidden. If this parameter is set to 1, the widget is completely displayed. Default value: 1.
  • Global level

    Parameter

    Description

    Text Style

    The font of all text in the widget. Default value: Microsoft Yahei.

    Arrangement

    The position of the title relative to the ticker board. Valid values: Title Above, Title Above, and Title Below.

    Spacing

    The distance between the title and the flip.

    Initialization Characters

    The content that is displayed by value when the custom component is initialized.

  • Title

    Parameter

    Description

    Title Name

    The name of the title. The input is usually text. corresponds to the name field in the data. The configuration in the data is preferentially used.

    Text Style

    The size, color, font weight, and alignment of the title text.

  • Flip

    • Font: the font family of the ticker board. Default value: Microsoft Yahei.

    • Horizontal Alignment: the horizontal alignment of the ticker board. You can select Left Alignment, Right Alignment, or Center Alignment.

    • Interval: the distance between the prefix and the number and the distance between the number and the suffix. Unit: px.

    • Prefix: the prefix of the ticker board.

      Parameter

      Description

      Content

      The specific content of the prefix. Generally, the input is a symbol, such as ¥ and $.

      Text Style

      The font, font size, color, and font weight of the title text.

    • Number: the number style of the ticker board.

      Parameter

      Description

      Text Style

      The color, font size, and font weight of the numeric text.

      Digit Interval

      The interval between numbers. Valid values: 0 to 100.

      Background color

      The background color of the squares occupied by each number, which can be set to transparent and hidden. Please refer to the color picker instructions for modification.

      Note

      When the font color is gradient, the font background color effect will be invalid.

      Background Fillet

      Drag the sliders to set the arc of the corners of each numeric background block.

      Separator Background

      If you turn on the switch, the separator displays the background color style.

      Default Digits

      The flip card displays several digits by default.

      Note

      If the value of the Default Number of Bits parameter is smaller than the value of the Data Length parameter, the excess part of the header is omitted. Otherwise, 0 is added to the head.

      Data Rounding

      If the switch is turned on, the value is directly rounded to an integer for display; if the switch is turned off, the original value is used for display.

      thousands separator delimiter

      If you turn on the switch, the value displays the thousands separator separator.

      thousands separator separator symbol

      The symbol for the thousands separator separator.

      Note

      The maximum length of a delimiter is one digit. If more than one digit is used, the first digit is used. You cannot use a number as a delimiter. For example, if you enter ,', it takes, as the delimiter.

      Decimal Split Symbol

      The sign of the decimal delimiter. The sign of the decimal delimiter.

      Note

      The maximum length of a delimiter is one digit. If more than one digit is used, the first digit is used. You cannot use a number as a delimiter.

      Fixed width

      Fixed width between digits.

      Data Jitter Correction

      Turn on the switch to protect the flip card data from falling and only show rising. Turn off the switch and the flip card data will show falling or rising.

      Turn on animation

      Turn on the switch to turn on the digital animation of the flip card.

      Always Animate

      Turn on the switch to always turn on animation when the incoming data remains unchanged. You can configure this only after you turn on the Open Animation configuration items.

      Animation Duration

      The playback duration of the animation. Unit: ms. You can configure this only after you turn on the Open Animation configuration items.

  • Suffix: the suffix style of the ticker board.

    Parameter

    Description

    Content

    The specific content of the suffix, which is usually used to identify the unit of a number, such as yuan or GB.

    Text Alignment

    The alignment mode of the suffix. Valves: Top-Alignment, Bottom-Alignment, and Center-Alignment.

    Text Style

    The font family, color, font size, and font weight of the suffix text.

  • Interactive: specifies the widget gesture cursor. Turn on the switch to enable cursor gesture interaction. Turn off the switch to enable no-gesture cursor interaction.

Data Panelimage..png

Configuration field description

Parameter

Description

name

Optional. The title of the ticker board. If you do not specify this parameter, the configurations in the style are overwritten. If this parameter is empty, the content in the Title > Title Name configuration items is used.

value

The specific numeric value of the ticker board.

prefix

Optional. The prefix of the ticker board. If this parameter is not empty, the configuration in the style is overwritten. If you leave this parameter empty, the content in the Flip > Prefix > Content configuration items is used.

suffix

Optional. The suffix content of the ticker board. If this parameter is not empty, the configuration in the style is overwritten. If you leave this parameter empty, the content in the flip > suffix > content configuration items is used.

Table 1. Parameters
ParameterDescription
Controlled ModeIf you turn on the switch, data is not requested when a widget is initialized. Data requests are triggered only based on callback IDs or the method configured in Blueprint Editor. If you turn off the switch, data requests are automatically triggered. By default, the switch is turned off.
Auto Data RequestAfter you select the Auto Data Request check box, you can enable dynamic polling, and manually specify the polling interval. If you do not select this check box, data is not automatically requested. You must manually refresh the page to request data or use Blueprint Editor or callback ID events to trigger data requests.
Data SourceIn the right-side panel of Canvas Editor, click the Data tab. Click Set next to Static Data. In the Configure Datasource panel, select a data source from the Data Source Type drop-down list. Enter code for data query in the code editor, click Preview Data Response to preview the response of the data source, and then view the response. For more information, see Configure asset data.
Data FilterIf you select the Data Filter check box, you can convert the data structure, filter data, and perform simple calculations. If you click the plus sign (+) next to Add Filter, you can configure the script for the data filter in the editor that appears. For more information, see Use the data filter.
Data Response ResultThe response to a data request. If the data source changes, you can click the Refresh icon icon next to Data Response Result to view the data response in real time.

Interaction Panel image..png

Select the Enable check box to enable interactions between widgets. When the current value changes or when the flip card is clicked, the callback value is returned. By default, the value field value in the data is returned. For more information, see Configure the callback ID of a ticker board.

Configure interactions in Blueprint Editor

  1. In Canvas Editor, right-click a widget in the Layer panel and select Add to Blueprint Editor.
  2. Click the Blueprint Editor icon icon in the upper-left corner of the page.
  3. In the blueprint editor, click the ticker board widget in the Added Nodes pane. You can view the configuration parameters of the ticker board on the canvas, as shown in the following figure. 数字翻牌器蓝图参数

    • Event

      Event

      Description

      When the data interface request is completed

      The event is triggered with the processed JSON data after a data interface request is responded and processed by a filter. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.

      When a data interface request fails

      The event that is returned when a data interface request fails (the request may be due to network problems or interface errors) and is processed by the filter. The event also throws the processed JSON data. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.

      When the current value changes

      The event that is raised when the current value changes, and the data item corresponding to the value.

      When you click the flip

      The event that is raised when the flip is clicked, along with the data item corresponding to the value.

    • Policy Action

      Policy Action

      Description

      Request Data Interface

      This action is performed to request the server data again. The data sent by an upstream data processing node or layer node is used as a parameter. For example, if the API data source is https://api.test and the data passed to the request data interface is { id: '1'}, the final request interface is https://api.test?id=1.

      Import data

      After data of a widget is processed in accordance with its drawing format, the widget is imported for redrawing. You do not need to request server data again. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.

      Clear Current Value

      Sets the current number to zero without parameters.

      Update component configurations

      Style configurations of widgets are dynamically updated. Before this action is executed, you must click the widget in Canvas Editor, click the Settings tab in the right-side panel, and click Copy Configurations to... to obtain widget configurations. After that, change the style field for the data processing node in Blueprint Editor.

      Display

      Displays the widget. The following example shows the reference data.

      return {
        "animationType": "",
        "animationDuration": 1000,
        "animationEasing": "linear"
      }

      Hide

      The following example shows how to hide a widget.

      return {
        "animationType": "",
        "animationDuration": 1000,
        "animationEasing": "linear"
      }

      Switch to the implicit state

      Specifies whether to show or hide a widget. The following example shows the reference data.

      return {
        "animationIn": {
          "animationType": "",
          "animationDuration": 1000,
          "animationEasing": "linear"
        },
        "animationOut": {
          "animationType": "",
          "animationDuration": 1000,
          "animationEasing": "linear"
        }
      }

      Move

      Move a widget to a specified location. The following example shows the reference data.

      return {
        // The positioning type. to indicates absolute positioning, whereas by indicates relative positioning. The default value is to. 
        "positionType": "to",
        // The location, which is indicated by the x and y coordinates. 
        "attr": {
          "x": 0,
          "y": 0
        },
        // The animation type. 
        "animation": {
          "enable": false,
          // The duration in which animation is displayed. 
          "animationDuration": 1000,
          // The animation curve, which can be set to linear|easeInOutQuad|easeInOutExpo. 
          "animationEasing": "linear"
        }
      }