All Products
Search
Document Center

DataV:Arrow Drawing

Last Updated:Nov 07, 2023

This topic describes the chart style of the Arrow Plot component and the meaning of each configuration items.

Chart style

Arrow plotting is a type of media widget. It allows you to add arrow elements of a custom style to a visual application or a module of a visual application. 箭头_Trim

Settings

image
  • Search Configuration: Click Search Configuration in the upper-right corner of the Configuration panel. In the Search Configuration panel, enter the name of the configuration items that you want to search for to quickly locate the configuration items. 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 锁定长宽比按键icon to lock the aspect ratio of the widget and modify the width and height of the widget in equal proportion. 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 icon to control the rotation angle of the widget.

    • Click the 左右翻转图标icon to flip the widget style.

    • Click the 上下翻转图标icon 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.

  • Line Style: the style of the line in the arrow plot. image

    Parameter

    description

    Left Height Scale

    The ratio of the line end on the left side of the widget to the border height of the widget. The value ranges from 0 to 1. A larger ratio indicates a lower line end.

    Right Height Scale

    The ratio of the line end on the right side of the widget to the border height of the widget. The value ranges from 0 to 1. A larger ratio indicates a lower line end.

    Arc thickness

    The thickness of the line arc. Valid values: 0 to 20. Unit: pixels. The larger the value, the thicker the arc.

    Linetype

    The style of the line curve.

    End Shape

    Shape selection for endpoints in a line, optional, including round and butt.

    Dotted Line

    The dashed pattern of the spaces between the endpoints and the end points in the line.

    Animation Direction

    The animated direction of the line, optionally left and right.

    Dotted Speed

    The movement speed of the dotted line, the value range is between 0 and 300, the larger the value, the faster the speed.

    Fill Color

    The fill color of the line. For more information, see color picker instructions.

  • Arrow Style: the style of the arrow in the arrow plot. image

    Parameter

    description

    Show Left Arrow

    Turn on the switch to show the left arrow style; turn off the switch to hide the left arrow style.

    Show Right Arrow

    If you turn on the switch, the right arrow style is displayed. If you turn off the switch, the right arrow style is hidden.

    Width

    The width of the arrow. Valid values: 0 to 100. Unit: pixels. The larger the value, the larger the width of the arrow.

    Height

    The height of the arrow. Valid values: 0 to 100. Unit: pixels. The greater the value, the greater the height of the arrow.

    Fill Color

    The fill color of the arrow. For more information, see color picker instructions.

  • Text Style: the style of the text in the arrow plot. image

    Parameter

    description

    Display

    Turn on the switch to show the text style; turn off the switch to hide the text style.

    Text Position

    The placement style of the text. Valid values: Text Above and Text Below.

    Text and Line Spacing

    The parallel distance between the text and the line. Valid values: 0 to 100. Unit: pixels. The larger the value, the larger the separation distance.

    Animation Direction

    The direction in which the text animation is played. Valid values: Left and Right.

    Animation Interval

    The time when the text is played through the animation. Valid values: 0 to 10. Unit: seconds. The higher the number, the longer it takes for the animation to play one turn.

    Font size

    The font size of the text.

    Font color

    The font color of the text. For more information, see color picker instructions.

    Font weight

    The weight of the font.

    Font

    The style of the font. The default value is Microsoft Yahei.

Data tab

image

Configuration field description

Column

Description

content

The arrow plots the contents of the text portion of the component.

alink

The hyperlink URL set by the Arrow Plot component to the text part.

textAnimate

The text animation in the Arrow Plot widget. true indicates that the animation is turned on; false indicates that the animation is turned off.

lineAnimate

Arrows plot the dashed animation in the widget. true indicates the on animation; false indicates the off animation.

Interaction tab

This widget does not support interaction events.

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 蓝图图标icon in the upper-left corner.

  3. In Blueprint Editor, click the Arrow Plot widget in the Added Nodes pane. You can view the parameters in the canvas, as shown in the following figure. 箭头标绘蓝图参数

    • Events

      Events

      Description

      When the data 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 request fails

      The event that is returned when a data interface request fails (such as 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.

    • Action

      Action

      Description

      Requests

      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.

      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.

      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"
        }
      };

      China Mobile

      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"
        }
      };