bubble-cards

更新时间:
复制 MD 格式

Configure all settings of the bubble card widget, including button style, card style, data sources, and blueprint interactions.

Chart style

The bubble card is an advanced widget that displays small pop-up information. You can customize the button style and card display style.image

Style Panel image.png

  • Search Configuration: Click the Search configuration items icon imagein the upper-right corner of the Style panel. In the Search Configuration panel, enter the name of the configuration items that you want to search for and locate the configuration items. Fuzzy match is supported. For more information, see Search configuration items.

    • Size: the width and height of the widget. Unit: pixels.

    • Positioning: the x-axis and y-axis of the component. Unit: pixels. 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.

    • Rotate: The widget is rotated around the center of the widget. Unit: degrees.

      • 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.

      • Click the imageicon to flip the widget style.

      • Click the imageicon to flip the widget style.

    • Opacity: Valid values: 0 to 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.

  • Button Style

    Metric

    description

    Show Text

    The display text of the bubble card. The default value is Bubble.

    Trigger

    The trigger mode of the bubble card. Valid values: Click and Hover.

    Text alignment

    The text alignment of the bubble card. Valid values: Left, Center, and Right.

    Text Margins

    The horizontal padding between the text and the button edges. Unit: px.

    Normal Style

    The style of the bubble card button in the normal state.

    • Background Color: the background color of the bubble card button.

    • Border Style: the border style of the button, including the line type, corner angle, line width, and border color.

    • Text Style: Specify the font style, weight, font size, and color of the text in the selected bubble card.

    Hover Style

    The style of the button in the hover state.

    • Background Color: the background color of the bubble card button.

    • Border Style: the border style of the button, including line type, corner radius, line width, and border color.

    • Text Style: Set the font style, weight, font size, and color of the text in the bubble.

  • Card Style

    Metric

    description

    Card Layout

    The layout of the bubble card, including the card position and the spacing between the card and the button.

    Card Size

    The size of the bubble card, including the card width and whether adaptive height is enabled.

    Pointing Arrow

    The style of the pointing arrow, including its size and color.

    title

    The title style of the bubble card. Click the 眼睛图标 icon to toggle title visibility.

    • Custom Height: the height of the title. Unit: pixels.

    • Background Color: Set the background color of the title.

    • Horizontal Alignment: The horizontal alignment of the title text. Validity values: Left, Center, and Right.

    • Vertical Alignment: The vertical alignment of the title text. Valid values: Alignment, Alignment, and Alignment.

    • Text Margin: specifies the horizontal and vertical margins of the title text. Unit: pixels.

    • Text Style: Set the text style of the title text, including the text font style, text weight, font size, and text color.

    • line separator: Set the line separator style of the title, including the line type of the line separator, the width value of the line, and the color of the line.

    Content

    The content style of the bubble card. Click the 眼睛图标 icon to toggle content visibility.

    • Custom Height: the height of the content. Unit: pixels.

    • Background Color: Set the background color of the content.

    • Horizontal Alignment: The horizontal alignment of the text. Validity values: Left, Center, and Right.

    • Vertical Alignment: The vertical alignment of the content text. You can select Alignment, Alignment, and Alignment.

    • Text Margin: Specify the horizontal and vertical margins of the text. Unit: pixels.

    • Text Style: Specify the text style of the content, including the text font style, text weight, font size, and text color.

Data Sources panel image.png

Column

Description

title

The title text of the bubble card.

content

The content text of the bubble card.

show

Whether the bubble card is visible.

Configure data items

Description

Data sources

Use the code editor or visual editor to view the data fields of the widget. You can also modify the data type to configure component data.

Data Mapping

Customize field configurations by mapping fields in the Data Mapping module to the corresponding widget fields. This allows you to match data without modifying the data source fields. You can also click the image icon to configure the field style.

Configure a filter

Turn on Filter, select an existing data filter or create a data filter, and configure a data filter script to filter data. For more information, see Manage data filters.

Data Response Result

Displays the widget data in real time. If the data source changes, the latest data is shown. Click the image icon to view the data response result, or click the image icon to refresh the data. You can also click View Example to view a sample response.

Forbid Loading

Select the check box to hide loading content during component initialization when updating or previewing the data dashboard. By default, the check box is cleared.

Controlled Mode

Select the check box to prevent the component from requesting data during initialization. In this mode, data is requested only through global variables or methods configured in Blueprint Editor. By default, the check box is cleared.

Auto Data Request

Select the check box and specify the polling interval to enable dynamic data updates. If the check box is cleared, the page does not update automatically. You must manually refresh the page or use Blueprint Editor and global variable events to trigger data updates.

Advanced Panel

This component has no event configuration.

Blueprint Interaction

  1. Click the imageicon in the upper-left corner to go to the Blueprint page.

  2. On the Layer Nodes tab, add the widget to the main canvas.

  3. Refer to the blueprint configuration parameters. image.png

    • Event

      Event

      Description

      When the bubble card data port request is completed

      Triggered after a data interface request is responded to and processed by a filter. The processed JSON data is included. For specific data examples, see the Data Response Result section of the Data Source tab in the right-side configuration panel.

    • Action

      Action

      Description

      Import bubble card data port

      Imports pre-processed data to redraw the widget without re-requesting server data.

      [
        {
          "title": "Title",
          "content": "This is a description of the bubble card. ",
          "show": false
        }
      ]

      Request bubble card 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 transferred to the request data interface is { id: '1'}, the final request interface is https://api.test?id=1.

      Move

      Moves the widget to a specified location.

          {      
            // 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"
            }
          }

      Switch Display /Display

      Toggles whether the widget is displayed or hidden. No parameters are required.

      Display

      Displays the widget.

      {
        "animationType": "",// The animation method. Valid value: fade. If you do not specify this parameter, no animation is generated. 
        "animationDuration": 1000,// The animation delay. Unit: ms. 
        "animationEasing": ""// animation curve
      }

      Hide

      Hides the widget.

      {
        "animationType": "",// The animation method. Valid value: fade. If you do not specify this parameter, no animation is generated. 
        "animationDuration": 1000,// The animation delay. Unit: ms. 
        "animationEasing": ""// animation curve
      }

      Update component configurations

      Dynamically updates widget style configurations. In the Style panel, click Copy Configuration to Clipboard to obtain the configuration data, then modify the style field in the data processing node of Blueprint Editor.