Skip to content

Map Chart

Map Chart is a data chart that displays the distribution of various business indicator data through a flat map. Currently, it supports China flat maps and map display modes of various provinces across the country. For example, users can display the distribution of various projects in various provinces and cities through a national flat map, or they can display the project coverage of a specific province only.

Advantages: Maps are suitable for displaying various aspects of geography, economy, production, and daily life, and are suitable for data summary analysis based on geographical locations from a macro perspective.

Disadvantages: Maps are relatively special graphics, specifically used to represent certain types of charts, and are not suitable for displaying general data.

Settings

Data Settings

Setting ItemDescription
Data SourceSelect the data source for the map
Name FieldSelect the field returned by the data source. This field is used to match with map provinces, cities, and districts. The system will match the values in this field with map administrative regions one by one. It is generally recommended to select text or cascading selection fields for provinces, cities, and districts
Value FieldSelect the data field that needs to be displayed in each administrative region of the map

Chart Settings

Setting ItemDescription
Color Allocation TypeConfigure the color effect of the map graphics. Options: Allocate colors in the palette by chart, Allocate colors in the palette by data item
When multiple charts are aggregated, you can choose to allocate by chart; for a single chart, you can choose to allocate by data item. The specific color values can be adjusted in the Style menu palette.
MapSelect the map area to be displayed in the chart
Options: National, Provinces
Zoom and PanEnable or disable the map zoom and pan functions
Aspect RatioSet the aspect ratio coefficient of the map display
Zoom RatioSet the default zoom ratio coefficient for map display
Minimum Zoom LimitSet the minimum zoom ratio for the map
Maximum Zoom LimitSet the maximum zoom ratio for the map

Label Settings

Setting ItemDescription
Display LabelTurn on or off the display of labels on the map
Display Content ExpressionYou can customize and edit expression syntax to achieve complex scene content display. The display priority is lower than [Display Content]
Display ContentYou can edit the label display content, which does not support complex expression syntax except prompt content. The display priority is higher than [Display Content Expression]
PositionYou can choose the display position of the label on the map
Distance from GraphicSet the distance of the label from the value point in the map. If there is no data in the area, the graphic will not be displayed, and this configuration will not take effect
Label RotationSet the rotation angle of the label
Text Offset XSet the distance of the label from the X-axis
Text Offset YSet the distance of the label from the Y-axis
ColorSet the color of the label text
Background ColorSet the background color of the label text, which needs to be used together with parameters such as line height, padding, width, and height in the text style to take effect
Text StyleSet the label text to italic or normal mode
Font WeightSet the label font weight. Options: Default, Bold, Very Bold, Thin
FontSet the label font style. Options: sans-serif, serif, monospace, Arial, Courier NEW
Font SizeSet the label font size. The font size is not less than 12 and cannot exceed 100
Horizontal AlignmentSet the horizontal alignment of the label text, including four ways: auto, left, center, and right
Vertical AlignmentSet the vertical alignment of the label text, including four ways: auto, top, center, and bottom
Line HeightSet the line height of the label text, which takes effect after the Exceed Width Handling of the text selects the line wrap option
PaddingSet the distance length of the label text in the background box
WidthSet the maximum display width of the label text, generally need to be combined with Exceed Width Handling for line wrap and other configurations
HeightSet the display height of the label text, which only affects the height of the text background, not the display of the text itself
Exceed Width HandlingThe processing method after the label exceeds the maximum width, including two types: line wrap and truncation and ellipsis display. If set to None, the maximum width will not take effect
Stroke WidthSet the stroke width of the label background image, which takes effect after setting the stroke color
Stroke ColorSet the stroke color value of the label background
Stroke RadiusSet the stroke radius angle of the label background
Shadow ColorSet the shadow color of the label background, which takes effect after setting the label background color and shadow size
Shadow SizeSet the shadow size of the label background
Shadow Horizontal OffsetSet the offset distance of the label background shadow in the horizontal direction
Shadow Vertical OffsetSet the offset distance of the label background shadow in the vertical direction

Map Style

Setting ItemDescription
Area ColorSet the unified color effect of map blocks
ColorSet the color effect of the current map legend
Border ColorSet the color effect of the stroke for each map area
Stroke TypeConfigure the stroke type of the map area
Options: Solid Line, Dashed Line, Dotted Line
Stroke WidthSet the stroke width of the map area
Stroke RadiusSet the stroke radius angle of the map area
Shadow ColorSet the shadow color of the map area
ShadowSet the shadow size of the map area
Shadow Horizontal OffsetSet the offset of the map area shadow in the horizontal direction
Shadow Vertical OffsetSet the offset of the map area shadow in the vertical direction
OpacitySet the opacity of the map area, the opacity value ranges from 0 to 1

Label Layout

Setting ItemDescription
Hide Overlapping LabelsWhen enabled, labels with overlapping content will be hidden
Overlapping Offset DirectionWhen labels overlap, you can choose the direction of label displacement, and you can choose two ways: horizontal or vertical displacement

Highlight Settings

Setting ItemDescription
Disable HighlightAfter disabling highlight, the label will no longer be highlighted when the mouse moves to the label position
Behavior on HighlightSet the interactive style of highlight display
Fade Out RangeSet the selection range for interactive interface fade out when highlighting, providing three ways: fade out coordinate system, fade out chart or global fade out

Events

Setting ItemDescription
UnclickableAfter opening, all label data in the chart cannot be clicked; after closing, you can set the corresponding data click interaction event
Call Automation on ClickYou can select the corresponding automation to implement related data label click interaction events, such as opening the corresponding data form details or opening other web links after clicking
Call Automation on Double ClickThe function is the same as click call, but the interaction is triggered by double click instead of single click. You can set click and double click events at the same time

Usage Example

Suppose we need to create a China population density map.

The specific data structure is as follows:

Field NameField Type
LocationString
PopulationInteger

Configuration Example

Note: Map Chart generally needs to be used with dynamic styles, such as matching dynamic styles in the example to form a population density heat map