All Products
Search
Document Center

DataV:Scatter Layer (Linear Gradient)

Last Updated:May 12, 2023

This topic describes the scatter layer (linear gradient) of the chart style and the meaning of each configuration items.

Chart Style

The scatter layer (linear gradient) is a subcomponent of 3D Earth. It supports independent styles and data configurations, including the size, color, type, longitude, and latitude of the scatter. It can represent the point data information at a geographic location in the form of scatter points. 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.
  • Height: the height of the scatter layer relative to the spherical surface of the map. Valid values: 3 to 10.

  • Minimum Radius: the minimum radius of the scatter.

  • Maximum Radius: the maximum radius of the scatter.

    Note

    The scatter between the maximum radius and the minimum radius. The scatter between the maximum radius and the minimum radius is displayed based on the value of the value field.

  • Animation Speed: the animation speed of the scattered dots. Valid value: 0 to 0.1.

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

  • Scatter Map: the map style of the scatter layer. You can paste the map URL to obtain the map.

  • Default Color: If the type field in the data is inconsistent with the configuration items of the Scatter Type > type, the scatter is displayed in the default color.

  • Scatter Type: Click the image..pngor image..pngicon to add or delete a scatter type. Click the 横排列图标or 竖排列图标icon to configure the arrangement style of multiple scatter points. Click the 复制图标icon to copy the current scatter type configuration and add a scatter type with the same configuration.

    Parameter

    Description

    type

    The value of the type corresponds to the type field in the data.

    Color

    The color of the lower scatter of this type.

    Note

    This configuration items can be an array. You can configure multiple series in this configuration items. The point corresponding to type field in the data is rendered with the color under this series. If type fields in the data are not present in this configuration items, they are rendered in the default color.

Data Panel

image..png

Configuration field description

Parameter

Description

lng

Optional. The longitude of a dot.

lat

Optional. The latitude of a dot.

type

The type of the scatter. It defines the color of the scatter together with the Scatter Type > type configuration items.

value

The numeric value corresponding to the scatter.

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

This widget does not support interaction events.

Configure interactions in Blueprint Editor

  1. In Canvas Editor, click the 导出到蓝图编辑器icon next to Scatter Layer (Linear Gradient) in the 3D Earth widget list.

  2. Click the Blueprint Editor icon icon in the upper-left corner of the page.
  3. In Blueprint Editor, click the Scatter Layer (Linear Gradient) widget in the Added Nodes pane. You can view the parameters of the Scatter Layer (Linear Gradient) widget on the canvas, as shown in the following figure. image..png

    • Event

      Event

      Description

      When the scatter layer 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 scatter layer 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.

    • Policy Action

      Policy Action

      Description

      Request Scatter Layer

      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 for the scatter layer (linear gradient) and the data passed to the request scatter layer action is { id: '1'}, the final request interface is https://api.test?id=1.

      Import Scatter Layer

      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.

      Display

      A widget is shown without the need to specify parameters.

      Hide

      A widget is hidden without the need to specify parameters.