All Products
Search
Document Center

DataV:The Radar Chart widget

Last Updated:May 11, 2023

This topic describes the chart style and configuration panel of a basic radar chart.

Chart Style

A basic radar chart is a type of other basic charts. You can use a radar chart to visually display the comparison of category data in multiple dimensions. In a basic radar chart, you can use the angle axis and polar coordinate axis to display categories and values respectively. You can customize text, graphics, and animation styles. You can configure multiple series of data.

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.
  • Chart image..png

    • Margin: the distance between the chart area and the four boundaries of the widget. Unit: pixels.

    • Value Label: the value label style of the radar chart. You can click the 开关图标icon to control the value label.

      Text: the font style, weight, font size, and color of the value tag text.

    • Legend: the style of the legend. You can click the 开关图标icon to display or hide the legend.

      Parameter

      Description

      Text

      Set the style of the legend text, including the text font style, font size, font color, and font weight. For more information, see color picker instructions.

      Layout

      The positional relationship between the legends.

      • Spacing

        • Left and Right Spacing: The distance between the left and right sides of adjacent legends. This configuration items is only valid when there are multiple series.

        • Distance: the distance between the legend and the upper and lower boundaries of the widget.

      • Position: the position of the legend relative to the start coordinates of the widget. Valid values: Top Left, Top Center, Top Right, Bottom Left, Bottom Center, and Bottom Right.

  • Axis: the Radial Axis and Angle Axis styles of the radar chart. image..png

    • Radial axis

      • Maximum Value

        Parameter

        Description

        Minimum Value

        The minimum value of the radial axis. Default value: 0.

        Maximum Value

        The maximum value of the radial axis. The default value is auto, which indicates that the system automatically calculates the match based on the maximum and minimum values of the data.

      • Axis Label: the label style of the radial axis. You can click the 开关图标icon to display or hide the label.

        Label Style: the font style, font weight, font size, and color of the axis label text.

      • Axis: the axis style of the radial axis. You can click 开关图标the icon to control the visibility of the axis.

        Color: the color of the axis.

      • Grid Line: the grid line style of the radial axis. You can click the 开关图标icon to control the visibility of the grid line.

        Parameter

        Description

        Type

        The type of the grid line. Valid values: Solid and Dashed.

        Color

        The color of the grid lines.

    • Angle Axis: the style of the angle axis.

      • Start Angle Offset: the start angle offset of the chart. Valid values: 0 to 360 degrees.

      • Axis Label: You can click the 开关图标icon to display the axis label of the angle axis.

        Parameter

        Description

        Label Style

        The font style, font weight, font size, and color of the axis label text.

        Axis Label Offset

        The offset of the axis label. Unit: px.

  • Series image..png

    data series: Click the 加号图标or 垃圾桶图标icon on the right to add or delete a data series. Click the 横排列图标or 竖排列图标icon to configure the arrangement style of multiple data series. Click the 复制图标icon to copy the selected data series configurations and add a data series with the same configurations.

    Parameter

    Description

    Series Value

    The specific value of the data series, which corresponds to the s field in the data panel.

    Series Name

    The name of the data series, corresponding to the description text content of the legend, can be customized.

    Stroke

    The stroke style of the radar chart in this series, including the stroke color and the stroke weight value.

    Fill Color

    The fill color of the radar chart under this series.

    Tag

    The marker style of the radar boundary point in this series. You can click 开关图标the icon to control the visibility of the boundary point marker.

    • Type: the type of the tag. Valid values: Circle, Diamond, Cross, Square, Lower Triangle, and Upper Triangle.

    • Size: the size of the tag.

    • Color: the color of the marker.

    • Transparency: the transparency of the tag. Valid values: 0 to 1.

  • Other

    • Emotion Animation: the animation effect style of the radar chart. You can click the 开关图标icon to enable or disable the animation effect. image..png

      Parameter

      Description

      Animation Settings

      • EASING: the easing effect of the animation. The system provides a variety of common easing effects for you to choose from.

      • Sequential Animation: If you turn on the switch, the radar charts of each series play the animation in sequence. If you turn off the switch, the radar charts of all series play the animation together.

      Admission Animation

      The duration of the first animation rendered by the component. Unit: ms.

      Update Animation

      Update Animation Duration: the duration of the animation when the widget data is updated. Unit: ms.

    • dialog box: the style of the dialog box that appears when you move the pointer over or click the radar chart area on the preview or publish page. Click 开关图标the icon to turn the dialog box on or off. image..png

      Parameter

      Description

      Disappearing Delay Time

      When the trigger condition is not met, the dialog box will disappear. This configuration items sets the delay time before the dialog box disappears, in ms.

      Trigger Method

      Trigger Action: dialog box the action to be triggered. This field is optional, including Hover and Click.

      Text Style

      The style of the text in the dialog box, including the font style, weight, font size, and color.

      Background Box Style

      The background box style of the dialog box.

      • Background Color: the background color of the dialog box.

      • Custom: the width and height of the dialog box. Unit: pixels. Click the 开关图标icon to turn custom dialog box on or off.

      • Pin: the inner margin of the dialog box. Unit: pixels.

      • Offset

        • Horizontal Offset: the horizontal offset of the dialog box relative to the mouse arrow. Unit: px.

        • Vertical Offset: the vertical offset of the dialog box relative to the mouse arrow. Unit: px.

      • Border

        • Border Size: the border size of the dialog box. Unit: pixels.

        • Border Color: The border color of the dialog box.

Data Panel

image..png

Configuration field description

Parameter

Description

x

The category value, which corresponds to the text content of the angle axis.

y

The actual numeric value for each class, corresponding to the value label text in the global style.

s

(Optional) The series value.

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 Enable to enable the widget interaction feature. When you click a radar boundary point of a basic radar chart, a data request is triggered, a callback value is thrown, and data of different radar boundary points is dynamically loaded. By default, the x, y, and s values are 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 Blueprint Editor, click the Radar Chart widget in the Added Nodes pane. On the canvas, you can configure the parameters for the basic radar chart, as shown in the following figure. 基本雷达图蓝图参数

    • Event

      Event

      Description

      When the basic radar map 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 Basic Radar Chart API 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 a data item is clicked

      The event that is raised when a radar boundary point of a basic radar chart is clicked, and the data item corresponding to the radar boundary point is also raised.

    • Action

      Policy Action

      Description

      Request a basic radar chart

      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 you set the API data source for basic radar charts to https://api.test and the data passed to the Request Basic Radar Chart action is { id: '1'}, the final request interface is https://api.test?id=1.

      Import a basic radar chart

      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.

      Highlight

      Highlight the element corresponding to the data item. The following example shows the reference data.

      return {
        "data": {},
        "options": {
          "style": {
            "stroke": "#f00",
            "fill": ""
          },
          "selectMode": "single",
          "cancelHighlightFirst": false
        }
      }

      Unhighlight

      Cancel the highlighting of the element corresponding to the data item. The following example shows the reference data.

      return {
        "data": {},
        "options": {
          "mode": "single"
        }
      }

      Clear components

      Clear component data. No parameters are required.

      Update component configurations

      Style configurations of widgets are dynamically updated. In the Configuration panel, click Copy Configuration to Clipboard to obtain the configuration data of the component. After that, change the style field for the data processing node in Blueprint Editor.

      Display

      The following example shows the widget.

      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

      The following example shows whether to show or hide a widget.

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