All Products
Search
Document Center

DataV:instructions-of-shape-mapper

Last Updated:Dec 02, 2024

The shape mapper is used to map the content between data values and graphics in a widget. Graphics include vector and icon. This topic describes how to use the shape mapper to map data to a graph. In this example, the Vector Scatter Layer component of the Basic Flat Map 3.0 component is used to configure the scatter shapes.

When you configure the scatter shape in the map widget, you must first select a scatter type. The available scatter types include Vector and Symbol. For more information, see Shape mapper types. After you select a scatter type, you can configure the corresponding scatter shapes in the lower part of the configuration panel, such as Vector and Symbol. image

Note

Scatter points of the Vector type support the Stroke effect. Scatter points of the Symbol type do not support the Stroke effect.

Configure shape mapping

You can use one of the following methods to configure the shape of the scatter dots. In this example, the Scatter Type parameter is set to Vector.

  • Method 1: Click the imageicon on the left side of the Vector Shape configuration items. When you click the mouse button to enable visual mapping, you do not need to be driven by data. You only need to configure the style. In the drop-down shape selection drop-down box, select a scatter graph. image

  • Method 2: Click the imageicon on the left side of the Vector Shape configuration items. When you click Disable Visual Mapping in the Hover state, use the shape mapper. The mapping is driven by the scatter data. You can select multiple scatter graphs. image

Description of the shape mapper function

Description

Remarks

Toggle configuration shape mapping when panel collapses

With the shape mapper set to collapsed, click the drop-down list to open the shape template. The top row displays the currently mapped shape results, with multiple shape templates available for you to choose from below. Click a shape within the template to quickly switch mapping shapes. image

Panel expansion configuration mapping details

When the shape mapper is set to the expanded state, the system automatically reads data and maps the shape and data. You can configure the mapping details as follows. image.png

  • Vector Shape: Click the drop-down list to open the vector shape. You can quickly change the shape of the data map. After selecting a vector shape, you can click to adjust a specific shape style in the shape mapping list below.

    Note

    Click the 钉住图标icon to the right of a color in the template to pin the color value of the selected color. A single color that is not pinned changes as the template is switched.

  • Quantity: You can specify the quantity of the overall vector shape.

  • Reverse Order: Click the 反序icon to sort the shape mappings in reverse order.

  • Abnormal Value: In the shape mapping list, you can select an abnormal value from the drop-down list and select a shape to define the mapping status of abnormal values such as undefined, null, and NaN.

  • Custom Mapping: If you turn on the switch, you can customize the mapping between the modified data and the shape, and set the shape style of the mapped shape to meet your custom requirements.

    • Delete an Entire Line Map: Click the imageicon to the left of a line map entry to delete the entire line map entry.

    • Set Mapping Field: You can enter the data field value corresponding to the shape in the field on the right of a mapping entry.

    • Add a mapping entry: Click the imageicon below the shape mapping list to add a row of shape mapping entries.

Shape Mapper Type

The graphics mapping types of shape mappers can be divided into two types: vector and symbol.

  • Vector: maps data to a vector polygon, such as a triangle, square, diamond, and hexagon.

  • Symbol: maps data to a symbol icon. You can obtain a symbol by using a built-in icon or a custom input URL.