World Map¶
Used to display the distribution of data across different geographical locations, using color to represent data magnitude.
Use Cases¶
- Display the distribution of data across different regions.
- Show the ranking of data magnitude across different regions.
Chart Query¶
Prerequisites
The dataset from the metric query must contain a tag representing "country", and the query condition must include a grouping by "country". Otherwise, the chart cannot be added successfully.
Four query methods are supported:
- Simple Query
- Expression Query
- Promql Query
- Data Source Query
Multiple queries can be added, but the Tag used for the by (grouping) must be consistent. Modifying one will automatically synchronize the changes to the others.
For more detailed explanations of chart query conditions, please refer to Chart Query.
The chart query matches regions by country and matches color by metric value:
| Option | Description |
|---|---|
| Country Tag | Select the tag representing the country. This tag must be a grouped tag in the query. ❗️ The tag name for the country tag does not necessarily have to be "country"; as long as its value is a country, it is acceptable. |
| Metric | When multiple metric queries are added, you can set the primary metric to display. The "Primary Display Metric" determines the gradient color of the map regions. |