Overview
Version
Report Server Version |
---|
11.0 |
Application Scenario
The area map, divided by countries, provinces, cities, and administrative regions, can be used to present geographic information, and the data related to geographic location. The size of the indicators in the map can be distinguished by shades of color. The area map is suitable for presenting datasets with geographic location information, typically presenting aggregated continuous information based on a region. The following figure shows the display effect.
Chart Feature
Advantage: The map visualizes the geographic distribution of data, and you can easily determine the size of the metric by the color shades.
Disadvantage: Geographic information must be available, and the data must be aggregated for the area map where the values are imprecise, and geographic area size is irrelevant to the metric, which can be easily misinterpreted.
Example
Data Preparation
Create a general report, create a database query named ds1, and enter the SQL statement SELECT * FROM Map. The table Map records data such as Sales_volume, Profits_amount, and Operating_expenses of each province in China.
Chart Insertion
Merge required cells, click the Insert Chart icon on the upper toolbar, select Area Map, and click OK, as shown in the following figure.
Map Design
1. Map Setting
Click Type, Select China as Map Boundary, select Black as GIS Layer, and set Zoom Level and Center to Auto respectively. Set other settings as needed, as shown in the following figure.
Data Binding
Click Data and bind required data to the chart, as shown in the following figure.
Note that an Area Name setting box will pop up after you click the setting icon on the right of Area Name, as shown in the following figure.
When the fields in the dataset can match the set area names in Map Boundary, the fields will match the area names automatically. You can also customize the matching relationship as needed when the fields cannot match the area names. For example, if you select China as Map Boundary, fields in the dataset will be matched with provinces in China. If you select Jiangsu Province as Map Boundary, the fields will match cities in Jiangsu province, and the data of areas that do not match the fields will not be displayed on the map.

Map Style Setting
1. Choose Style > Label, select Use Label, select Area Name as Text, and set Character to Custom, as shown in the following figure.
2. Choose Style > Series, select Value as Color Section, and Continuous Gradient as Color Type, set Section Range to 3, and retain the default settings of other items.
Null Color refers to the color of the area with no data. Opacity takes effect for all areas within the border. Border refers to the boundary line of each area.
3. Choose Style > Legend and select Show Legend, as shown in the following figure.
Effect Display
PC
Save the report and click Pagination Preview. The section "Application Scenario" shows the effect.
Mobile Terminal
The report can be previewed on both the DataAnalyst app and the HTML5 terminal. The following figure shows the effect.
Supplementary: Selecting Null as GIS Layer
If you select Null as GIS Layer, the map will display the area within the boundary. In the above example, if you select Null as GIS Layer, the map will only show the area within China, as shown in the following figure.

Template Download
For details, you can download the template Area Map.cpt